mcp-server-kubernetes
Version:
MCP server for interacting with Kubernetes clusters via kubectl
47 lines (46 loc) • 1.69 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 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: {
readonly type: "string";
readonly description: "Namespace to apply the resource to (optional)";
readonly default: "default";
};
readonly dryRun: {
readonly type: "boolean";
readonly description: "If true, only validate the resource, don't apply it";
readonly default: false;
};
readonly force: {
readonly type: "boolean";
readonly description: "If true, immediately remove resources from API and bypass graceful deletion";
readonly default: false;
};
};
readonly required: readonly [];
};
};
export declare function kubectlApply(k8sManager: KubernetesManager, input: {
manifest?: string;
filename?: string;
namespace?: string;
dryRun?: boolean;
force?: boolean;
}): Promise<{
content: {
type: string;
text: string;
}[];
}>;