kom 是一个用于 Kubernetes 操作的工具,SDK级的kubectl、client-go的使用封装。并且支持作为管理k8s 的 MCP server。 它提供了一系列功能来管理 Kubernetes 资源,包括创建、更新、删除和获取资源,甚至使用SQL查询k8s资源。这个项目支持多种 Kubernetes 资源类型的操作,并能够处理自定义资源定义(CRD)。 通过使用 kom,你可以轻松地进行资源的增删改查和日志获取以及操作POD内文件等动作。
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"kom": {
"command": "go",
"args": [
"run",
"github.com/weibaohui/kom@latest"
]
}
}
}
Run in terminal:
claude mcp add kom go run github.com/weibaohui/kom@latest
Add to .cursor/mcp.json:
{
"mcpServers": {
"kom": {
"command": "go",
"args": [
"run",
"github.com/weibaohui/kom@latest"
]
}
}
}