cluster-info
Retrieve essential Kubernetes cluster details including nodes, versions, and status to monitor infrastructure health and configuration.
Instructions
Get cluster information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:1764-1770 (handler)The handler for the 'cluster-info' tool. It runs the 'kubectl cluster-info' command using execAsync and returns the standard output as text content in the MCP response format.const cmd = `kubectl cluster-info`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "Unable to get cluster info" }] }; }
- server.js:604-610 (schema)The tool schema definition for 'cluster-info', including name, description, and empty input schema. This is part of the tools array returned by ListToolsRequestHandler.name: "cluster-info", description: "Get cluster information", inputSchema: { type: "object", properties: {} } },