list-clusterrolebindings
Retrieve cluster role bindings in Kubernetes to manage access control and permissions across your cluster resources.
Instructions
List Kubernetes cluster role bindings
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:1951-1957 (handler)The handler logic for the 'list-clusterrolebindings' tool. It runs the kubectl command to list clusterrolebindings with wide output and returns the result as text content.case "list-clusterrolebindings": { const cmd = `kubectl get clusterrolebindings -o wide`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No cluster role bindings found" }] }; }
- server.js:856-862 (schema)The tool definition including name, description, and empty input schema for 'list-clusterrolebindings'. This is used for registration and validation.name: "list-clusterrolebindings", description: "List Kubernetes cluster role bindings", inputSchema: { type: "object", properties: {} } },
- server.js:1392-1394 (registration)Registers the list of all tools, including 'list-clusterrolebindings', for the ListToolsRequest.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });