kubernetes-mcp-server
Advanced tools
Comparing version
{ | ||
"name": "kubernetes-mcp-server", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Model Context Protocol (MCP) server for Kubernetes and OpenShift", | ||
@@ -10,8 +10,8 @@ "main": "./bin/index.js", | ||
"optionalDependencies": { | ||
"kubernetes-mcp-server-darwin-amd64": "0.0.20", | ||
"kubernetes-mcp-server-darwin-arm64": "0.0.20", | ||
"kubernetes-mcp-server-linux-amd64": "0.0.20", | ||
"kubernetes-mcp-server-linux-arm64": "0.0.20", | ||
"kubernetes-mcp-server-windows-amd64": "0.0.20", | ||
"kubernetes-mcp-server-windows-arm64": "0.0.20" | ||
"kubernetes-mcp-server-darwin-amd64": "0.0.21", | ||
"kubernetes-mcp-server-darwin-arm64": "0.0.21", | ||
"kubernetes-mcp-server-linux-amd64": "0.0.21", | ||
"kubernetes-mcp-server-linux-arm64": "0.0.21", | ||
"kubernetes-mcp-server-windows-amd64": "0.0.21", | ||
"kubernetes-mcp-server-windows-arm64": "0.0.21" | ||
}, | ||
@@ -18,0 +18,0 @@ "repository": { |
@@ -19,3 +19,3 @@ # Kubernetes MCP Server | ||
- **View** and manage the current [Kubernetes `.kube/config`](https://blog.marcnuri.com/where-is-my-default-kubeconfig-file) or in-cluster configuration. | ||
- **✅ Generic Kubernetes Resources**: Perform operations on any Kubernetes resource. | ||
- **✅ Generic Kubernetes Resources**: Perform operations on **any** Kubernetes or OpenShift resource. | ||
- Any CRUD operation (Create or Update, Get, List, Delete). | ||
@@ -27,4 +27,7 @@ - **✅ Pods**: Perform Pod-specific operations. | ||
- **Show logs** for a pod by name from the specified namespace. | ||
- **Exec** into a pod and run a command. | ||
- **Run** a container image in a pod and optionally expose it. | ||
- **✅ Namespaces**: List Kubernetes Namespaces. | ||
- **✅ Events**: View Kubernetes events in all namespaces or in a specific namespace. | ||
- **✅ Projects**: List OpenShift Projects. | ||
@@ -62,2 +65,17 @@ Unlike other Kubernetes MCP server implementations, this IS NOT just a wrapper around `kubectl` or `helm` command-line tools. | ||
### VS Code / VS Code Insiders | ||
Install the Kubernetes MCP server extension in VS Code Insiders by pressing the following link: | ||
[<img alt="Install in VS Code Insiders" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5">](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522kubernetes%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522kubernetes-mcp-server%2540latest%2522%255D%257D) | ||
Alternatively, you can install the extension manually by running the following command: | ||
```shell | ||
# For VS Code | ||
code --add-mcp '{"name":"kubernetes","command":"npx","args":["kubernetes-mcp-server@latest"]}' | ||
# For VS Code Insiders | ||
code-insiders --add-mcp '{"name":"kubernetes","command":"npx","args":["kubernetes-mcp-server@latest"]}' | ||
``` | ||
### Goose CLI | ||
@@ -90,2 +108,10 @@ | ||
### _Vibe Coding_ a simple game and deploying it to OpenShift | ||
In this demo, I walk you through the process of _Vibe Coding_ a simple game using VS Code and how to leverage [Podman MCP server](https://github.com/manusa/podman-mcp-server) and Kubernetes MCP server to deploy it to OpenShift. | ||
<a href="https://www.youtube.com/watch?v=l05jQDSrzVI" target="_blank"> | ||
<img src="docs/images/vibe-coding.jpg" alt="Vibe Coding: Build & Deploy a Game on Kubernetes" width="240" /> | ||
</a> | ||
## ⚙️ Configuration <a id="configuration"></a> | ||
@@ -109,5 +135,6 @@ | ||
| Option | Description | | ||
|--------------|------------------------------------------------------------------------------------------| | ||
| `--sse-port` | Starts the MCP server in Server-Sent Event (SSE) mode and listens on the specified port. | | ||
| Option | Description | | ||
|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| `--sse-port` | Starts the MCP server in Server-Sent Event (SSE) mode and listens on the specified port. | | ||
| `--log-level` | Sets the logging level (values [from 0-9](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md)). Similar to [kubectl logging levels](https://kubernetes.io/docs/reference/kubectl/quick-reference/#kubectl-output-verbosity-and-debugging). | | ||
@@ -114,0 +141,0 @@ ## 🧑💻 Development <a id="development"></a> |
20925
13.13%148
22.31%