Skip to main content
Glama

api-versions

Retrieve available API versions for Kubernetes clusters to ensure compatibility when managing resources through the MCP server.

Instructions

Get available API versions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the "api-versions" tool that runs the 'kubectl api-versions' command and returns the output.
    case "api-versions": { const cmd = `kubectl api-versions`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No API versions found" }] }; }
  • Defines the input schema for the "api-versions" tool, which requires no parameters.
    { name: "api-versions", description: "Get available API versions", inputSchema: { type: "object", properties: {} } },
  • server.js:1392-1394 (registration)
    Registers the request handler for listing tools, returning the tools array that includes "api-versions".
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thekaranpargaie/kube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server