mcp-server-kubernetes 2.9.5 → 2.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,6 +12,10 @@
12
12
  [![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/Flux159/mcp-server-kubernetes)](https://archestra.ai/mcp-catalog/flux159__mcp-server-kubernetes)
13
13
  [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/Flux159/mcp-server-kubernetes)
14
14
 
15
+ <p align="center">
16
+ <img src="https://raw.githubusercontent.com/Flux159/mcp-server-kubernetes/refs/heads/main/icon.png" width="200">
17
+ </p>
18
+
15
19
  MCP Server that can connect to a Kubernetes cluster and manage it. Supports loading kubeconfig from multiple sources in priority order.
16
20
 
17
21
  https://github.com/user-attachments/assets/f25f8f4e-4d04-479b-9ae0-5dac452dd2ed
@@ -58,6 +62,12 @@ Add the following configuration to your Claude Desktop config file:
58
62
  }
59
63
  ```
60
64
 
65
+ ### Claude Desktop Connector via mcpb
66
+
67
+ MCP Server Kubernetes is also available as a [mcpb](https://github.com/anthropics/mcpb) (formerly dxt) extension. In Claude Desktop, go to Settings (`Cmd+,` on Mac) -> Extensions -> Browse Extensions and scroll to find mcp-server-kubernetes in the modal. Install it & it will install & utilize kubectl via command line & your kubeconfig.
68
+
69
+ To manually install, you can also get the .mcpb by going to the latest [Release](https://github.com/Flux159/mcp-server-kubernetes/releases) and downloading it.
70
+
61
71
  ### VS Code
62
72
 
63
73
  [![Install Kubernetes MCP in VS Code](https://img.shields.io/badge/Install%20Kubernetes%20MCP%20in%20VS%20Code-blue?logo=visualstudiocode)](vscode:mcp/install?%7B%22name%22%3A%20%22kubernetes%22%2C%20%22type%22%3A%20%22stdio%22%2C%20%22command%22%3A%20%22npx%22%2C%20%22args%22%3A%20%5B%22mcp-server-kubernetes%22%5D%7D)
@@ -21,7 +21,10 @@ export function startStreamableHTTPServer(server) {
21
21
  });
22
22
  res.on("close", () => {
23
23
  transport.close();
24
- server.close();
24
+ // Note: server.close() should NOT be called here as server is shared
25
+ // across all requests. Calling it would close the global MCP Server
26
+ // instance and cause the Node.js process to exit. Only the transport
27
+ // instance needs to be closed when the HTTP connection ends.
25
28
  });
26
29
  await server.connect(transport);
27
30
  await transport.handleRequest(req, res, req.body);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-server-kubernetes",
3
- "version": "2.9.5",
3
+ "version": "2.9.7",
4
4
  "description": "MCP server for interacting with Kubernetes clusters via kubectl",
5
5
  "license": "MIT",
6
6
  "type": "module",