UNPKG

mcp-server-kubernetes

Version:

MCP server for interacting with Kubernetes clusters via kubectl

53 lines (52 loc) 1.72 kB
import { KubernetesManager } from "../types.js"; export declare const kubectlApplySchema: { readonly name: "kubectl_apply"; readonly description: "Apply a Kubernetes YAML manifest from a string or file"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly manifest: { readonly type: "string"; readonly description: "YAML manifest to apply"; }; readonly filename: { readonly type: "string"; readonly description: "Path to a YAML file to apply (optional - use either manifest or filename)"; }; readonly namespace: { type: "string"; description: string; default: string; }; readonly dryRun: { type: "boolean"; description: string; default: boolean; }; readonly force: { readonly type: "boolean"; readonly description: "If true, immediately remove resources from API and bypass graceful deletion"; readonly default: false; }; readonly context: { type: "string"; description: string; default: string; }; }; readonly required: readonly []; }; }; export declare function kubectlApply(k8sManager: KubernetesManager, input: { manifest?: string; filename?: string; namespace?: string; dryRun?: boolean; force?: boolean; context?: string; }): Promise<{ content: { type: string; text: string; }[]; }>;