mcp-server-kubernetes 2.9.6 → 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
@@ -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.6",
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",