cluster-info
Retrieve essential Kubernetes cluster details including nodes, versions, and status to monitor infrastructure health and configuration.
Instructions
Get cluster information
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cluster-info"
}
}Input 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: {} } },