Skip to content

@nogoo9/no-crd / mcp/server / createMcpServer

Function: createMcpServer()

createMcpServer(k8sContext): Promise<McpServer>

Defined in: src/mcp/server.ts:24

Creates and configures a fresh instance of the Model Context Protocol (MCP) server. Instantiates the SDK server, runs RBAC diagnostics on Kubernetes, and conditionally registers pod tools, template resources, namespace tools, and workspace spawner tools.

Parameters

k8sContext

K8sContext

Active K8sContext containing API clients.

Returns

Promise<McpServer>

Instantiated and registered McpServer instance.