UNPKG

mcp-server-kubernetes

Version:

MCP server for interacting with Kubernetes clusters via kubectl

66 lines (65 loc) 1.46 kB
import { KubernetesManager } from "../utils/kubernetes-manager.js"; export declare const PortForwardSchema: { name: string; description: string; annotations: { title: string; }; inputSchema: { type: string; properties: { resourceType: { type: string; }; resourceName: { type: string; }; localPort: { type: string; }; targetPort: { type: string; }; namespace: { type: string; }; }; required: string[]; }; }; export declare function startPortForward(k8sManager: KubernetesManager, input: { resourceType: string; resourceName: string; localPort: number; targetPort: number; namespace?: string; }): Promise<{ content: { type: "text"; text: string; }[]; }>; export declare const StopPortForwardSchema: { name: string; description: string; annotations: { title: string; }; inputSchema: { type: string; properties: { id: { type: string; }; }; required: string[]; }; }; export declare function stopPortForward(k8sManager: KubernetesManager, input: { id: string; }): Promise<{ content: { type: "text"; text: string; }[]; }>;