@nogoo9/no-crd / index / registerPodTools
Function: registerPodTools()
registerPodTools(
server,k8sContext,enabledTools):void
Defined in: src/mcp/pods.ts:100
Registers core Kubernetes pod management tools with the MCP server. Registered tools:
list_pods: Lists pods with optional label/field selectors.get_pod: Retrieves full JSON configuration details for a specific pod.create_pod: Provisions and launches a pod from raw parameters.delete_pod: Terminates a pod with optional grace period.patch_pod: Applies a strategic merge patch to a pod.get_pod_logs: Retrieves container logs.list_namespaces: Lists accessible namespaces.list_registry_images: Lists images in the configured local registry.
Parameters
server
McpServer
The MCP Server instance to register the tools on.
k8sContext
Active Kubernetes API client context.
enabledTools
string[]
List of tool names that are allowed/enabled to be registered.
Returns
void
