{"type":"mcp_server","name":"kom","description":"Kom is a Kubernetes operations manager that simplifies resource management by providing SDK-level abstractions for creating, updating, deleting, and retrieving resources, including CRDs. Kom is a Kubernetes operations manager that","category":"System Tools","language":"Go","stars":148,"forks":9,"owner":"weibaohui","github_url":"https://github.com/weibaohui/kom","homepage":"https://github.com/weibaohui/kom","setup":"## Setup\n\n```bash\nimport (\n    \"github.com/weibaohui/kom\"\n    \"github.com/weibaohui/kom/callbacks\"\n)\nfunc main() {\n    // æ³¨ååè°ï¼å¡å¿åæ³¨å\n    callbacks.RegisterInit()\n    // æ³¨åéç¾¤\n\tdefaultKubeConfig := os.Getenv(\"KUBECONFIG\")\n\tif defaultKubeConfig == \"\" {\n\t\tdefaultKubeConfig = filepath.Join(homedir.HomeDir(), \".kube\", \"config\")\n\t}\n\t_, _ = kom.Clusters().RegisterInCluster()\n\t_, _ = kom.Clusters().RegisterByPathWithID(defaultKubeConfig, \"default\")\n\tkom.Clusters().Show()\n\t// å¶ä»é»è¾\n}\n```","tools":"## Available Tools\n\n1.  Simple and easy to use: kom provides rich functions, including creation, update, deletion, acquisition, listing, etc., including operations on built-in resources and CRD resources.\n2.  Multi-cluster support: You can easily manage multiple Kubernetes clusters through RegisterCluster.\n3.  MCP support: Support MCP management of multiple clusters, support SSE mode, and can realize the description operation of adding, deleting, checking and modifying any resources through large models.\n4.  Support cross-namespace: Query resources across namespaces through kom.Namespace(\"default\",\"kube-system\").List(&items).\n5.  Chain call: kom provides chain call, which makes operating resources simpler and more intuitive.\n6.  Support Custom Resource Definition (CRD): kom supports Custom Resource Definition (CRD), you can easily define and operate custom resources.\n7.  Support callback mechanism, easily expand business logic without being strongly coupled with k8s operations.\n8.  Support POD file operations, easily upload, download and delete files.\n9.  Support high-frequency operation encapsulation, such as deployment restart, scale expansion, start and stop, and other 20 operation functions.\n10. Support SQL query k8s resources: `select * from pod where metadata.namespace='kube-system' or metadata.namespace='default' order by  metadata.creationTimestamp desc`\n11. Support query caching: In high-frequency and batch query scenarios, you can set the cache expiration time to improve query performance; list filtering conditions are not affected by caching.","faq":null,"created_at":"2024-10-21T12:24:05+00:00","updated_at":"2025-03-28T16:40:26+00:00","source_url":"https://model-context-protocol.com/servers/kubernetes-operations-manager-resource-management","related_articles":[]}