Skip to content

@nogoo9/no-crd / index / registerSpawnerTools

Function: registerSpawnerTools()

registerSpawnerTools(server, k8sContext, enabledTools): void

Defined in: src/mcp/spawner.ts:58

Registers workspace management tools (the Spawner subsystem) with the MCP Server. Registered tools:

  • list_workspaces: Lists active agent workspaces (pods labeled nogoo9/type=workspace).
  • stop_workspace: Deletes/terminates a workspace pod.
  • spawn_workspace: Configures and deploys a workspace pod using templates/spec with annotations.

Parameters

server

McpServer

The MCP Server instance.

k8sContext

K8sContext

Active Kubernetes API client context.

enabledTools

string[]

List of tool names that are allowed/enabled to be registered.

Returns

void