describe-configmap
Retrieve detailed information about a specific Kubernetes ConfigMap resource, including its data, metadata, and configuration details for cluster management.
Instructions
Describe details of a Kubernetes configmap
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| configmap | Yes | The name of the configmap to describe | |
| namespace | No | The namespace of the configmap (optional, defaults to current context namespace) |
Implementation Reference
- server.js:1567-1575 (handler)The handler function that implements the core logic for the 'describe-configmap' tool by executing the 'kubectl describe configmap' command with the provided configmap name and optional namespace.case "describe-configmap": { const { configmap, namespace } = args; const nsArg = namespace ? `-n ${namespace}` : ""; const cmd = `kubectl describe configmap ${configmap} ${nsArg}`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No configmap details found" }] }; }
- server.js:246-262 (schema)The input schema definition for the 'describe-configmap' tool, including parameters for configmap name (required) and optional namespace.name: "describe-configmap", description: "Describe details of a Kubernetes configmap", inputSchema: { type: "object", properties: { configmap: { type: "string", description: "The name of the configmap to describe" }, namespace: { type: "string", description: "The namespace of the configmap (optional, defaults to current context namespace)" } }, required: ["configmap"] } },
- server.js:1392-1394 (registration)The tool list registration handler that includes 'describe-configmap' in the list of available tools returned to MCP clients.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });