Skip to main content
Glama

mcp-k8s-go

allowed_contexts_test.yaml1.39 kB
case: List namespaces with disallowed context in: { "jsonrpc": "2.0", "method": "tools/call", "id": 2, "params": { "name": "list-k8s-namespaces", "arguments": { "context": "disallowed-ctx" } } } out: { "jsonrpc": "2.0", "id": 2, "result": { "content": [{"type": "text", "text": "context disallowed-ctx is not allowed"}], "isError": true } } --- case: List k8s resources with disallowed context in: { "jsonrpc": "2.0", "method": "tools/call", "id": 3, "params": { "name": "list-k8s-resources", "arguments": { "context": "disallowed-ctx", "kind": "pod", "namespace": "default" } } } out: { "jsonrpc": "2.0", "id": 3, "result": { "content": [{"type": "text", "text": "context disallowed-ctx is not allowed"}], "isError": true } } --- case: Get pod logs with disallowed context in: { "jsonrpc": "2.0", "method": "tools/call", "id": 4, "params": { "name": "get-k8s-pod-logs", "arguments": { "context": "disallowed-ctx", "namespace": "default", "pod": "example-pod" } } } out: { "jsonrpc": "2.0", "id": 4, "result": { "content": [{"type": "text", "text": "context disallowed-ctx is not allowed"}], "isError": true } }

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/strowk/mcp-k8s-go'

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