UNPKG

mcp-server-kubernetes

Version:

MCP server for interacting with Kubernetes clusters via kubectl

71 lines (70 loc) 1.9 kB
import { KubernetesManager } from "../types.js"; export declare const kubectlRolloutSchema: { name: string; description: string; inputSchema: { type: string; properties: { subCommand: { type: string; description: string; enum: string[]; default: string; }; resourceType: { type: string; description: string; enum: string[]; default: string; }; name: { type: string; description: string; }; namespace: { type: "string"; description: string; default: string; }; revision: { type: string; description: string; }; toRevision: { type: string; description: string; }; timeout: { type: string; description: string; }; watch: { type: string; description: string; default: boolean; }; context: { type: "string"; description: string; default: string; }; }; required: string[]; }; }; export declare function kubectlRollout(k8sManager: KubernetesManager, input: { subCommand: "history" | "pause" | "restart" | "resume" | "status" | "undo"; resourceType: "deployment" | "daemonset" | "statefulset"; name: string; namespace?: string; revision?: number; toRevision?: number; timeout?: string; watch?: boolean; context?: string; }): Promise<{ content: { type: string; text: string; }[]; }>;