mcp-server-kubernetes
Version:
MCP server for interacting with Kubernetes clusters via kubectl
56 lines (55 loc) • 1.99 kB
TypeScript
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 annotations: {
readonly destructiveHint: true;
};
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). The path is read on the machine running the MCP server, so it is rejected when the server runs over a remote (SSE/Streamable HTTP) transport; use 'manifest' to pass the file's contents instead.";
};
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;
}[];
}>;