Skip to main content
Glama

kubernetes-mcp-server

kubernetes.go582 B
package test import ( clientcmdapi "k8s.io/client-go/tools/clientcmd/api" ) func KubeConfigFake() *clientcmdapi.Config { fakeConfig := clientcmdapi.NewConfig() fakeConfig.Clusters["fake"] = clientcmdapi.NewCluster() fakeConfig.Clusters["fake"].Server = "https://127.0.0.1:6443" fakeConfig.AuthInfos["fake"] = clientcmdapi.NewAuthInfo() fakeConfig.Contexts["fake-context"] = clientcmdapi.NewContext() fakeConfig.Contexts["fake-context"].Cluster = "fake" fakeConfig.Contexts["fake-context"].AuthInfo = "fake" fakeConfig.CurrentContext = "fake-context" return fakeConfig }

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/containers/kubernetes-mcp-server'

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