kubectl-mcp-server 1.12.0 → 1.13.0

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.
Files changed (2) hide show
  1. package/README.md +73 -9
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -42,7 +42,7 @@ Works with all MCP-compatible AI assistants:
42
42
 
43
43
  ## Features
44
44
 
45
- ### 121 MCP Tools for Complete Kubernetes Management
45
+ ### 127 MCP Tools for Complete Kubernetes Management
46
46
 
47
47
  | Category | Tools |
48
48
  |----------|-------|
@@ -66,6 +66,7 @@ Works with all MCP-compatible AI assistants:
66
66
  | **Autoscaling** | `get_hpa`, `get_pdb` |
67
67
  | **Cost Optimization** | `get_resource_recommendations`, `get_idle_resources`, `get_resource_quotas_usage`, `get_cost_analysis`, `get_overprovisioned_resources`, `get_resource_trends`, `get_namespace_cost_allocation`, `optimize_resource_requests` |
68
68
  | **Advanced** | `kubectl_generic`, `kubectl_explain`, `get_api_resources`, `port_forward`, `get_resource_usage`, `node_management` |
69
+ | **UI Dashboards** | `show_pod_logs_ui`, `show_pods_dashboard_ui`, `show_resource_yaml_ui`, `show_cluster_overview_ui`, `show_events_timeline_ui`, `render_k8s_dashboard_screenshot` |
69
70
 
70
71
  ### MCP Resources (FastMCP 3)
71
72
 
@@ -113,6 +114,7 @@ Pre-built workflow prompts for common Kubernetes operations:
113
114
  - **Helm v3**: Full Helm chart lifecycle management
114
115
  - **Cost Optimization**: Resource recommendations, idle resource detection, usage analysis
115
116
  - **FastMCP 3**: MCP Resources and Prompts for enhanced AI workflows
117
+ - **MCP-UI Support**: Interactive HTML dashboards for compatible hosts (Goose, LibreChat)
116
118
 
117
119
  ## Installation
118
120
 
@@ -136,6 +138,9 @@ npm install -g kubectl-mcp-server
136
138
  ```bash
137
139
  pip install kubectl-mcp-server
138
140
 
141
+ # With MCP-UI support (interactive dashboards)
142
+ pip install kubectl-mcp-server[ui]
143
+
139
144
  # Legacy alias (still works for backward compatibility)
140
145
  pip install kubectl-mcp-tool
141
146
  ```
@@ -336,6 +341,46 @@ python -m kubectl_mcp_tool.mcp_server --transport http --port 8000
336
341
  |----------|-------------|
337
342
  | `MCP_BROWSER_ENABLED` | Enable browser automation tools (default: `false`) |
338
343
 
344
+ ## MCP-UI Tools (Interactive Dashboards)
345
+
346
+ Enable rich HTML dashboards in MCP-UI compatible hosts (Goose, LibreChat, Nanobot).
347
+
348
+ ### Installation
349
+
350
+ ```bash
351
+ # Install with MCP-UI support
352
+ pip install kubectl-mcp-server[ui]
353
+ ```
354
+
355
+ ### 6 UI Dashboard Tools
356
+
357
+ | Tool | Description |
358
+ |------|-------------|
359
+ | `show_pod_logs_ui` | Interactive log viewer with search and filtering |
360
+ | `show_pods_dashboard_ui` | Pods table with status, restarts, and filtering |
361
+ | `show_resource_yaml_ui` | YAML viewer with syntax highlighting |
362
+ | `show_cluster_overview_ui` | Cluster dashboard with nodes, namespaces, workloads |
363
+ | `show_events_timeline_ui` | Events timeline with severity filtering |
364
+ | `render_k8s_dashboard_screenshot` | Render any dashboard as PNG screenshot |
365
+
366
+ ### Features
367
+
368
+ - **Dark theme**: Catppuccin-style dark UI optimized for terminals
369
+ - **Graceful fallback**: Returns JSON data if MCP-UI not supported
370
+ - **Screenshot rendering**: Works with agent-browser for universal compatibility
371
+ - **No external dependencies**: Pure HTML/CSS/JS dashboards
372
+
373
+ ### Compatibility
374
+
375
+ | Host | MCP-UI Support | Fallback |
376
+ |------|----------------|----------|
377
+ | Goose | ✅ Full | - |
378
+ | LibreChat | ✅ Full | - |
379
+ | Nanobot | ✅ Full | - |
380
+ | Claude Desktop | ❌ | JSON + Screenshot |
381
+ | Cursor | ❌ | JSON + Screenshot |
382
+ | Other MCP Clients | ❌ | JSON + Screenshot |
383
+
339
384
  ## Browser Tools (Optional Module)
340
385
 
341
386
  Enable browser automation for web-based K8s operations using [agent-browser](https://github.com/vercel-labs/agent-browser).
@@ -440,16 +485,35 @@ arctl mcp install io.github.rohitg00/kubectl-mcp-server
440
485
 
441
486
  ### agentgateway Integration
442
487
 
443
- Use with [agentgateway](https://github.com/agentgateway/agentgateway) for unified MCP routing:
488
+ Use with [agentgateway](https://github.com/agentgateway/agentgateway) for unified MCP routing to multiple MCP servers.
444
489
 
445
490
  ```bash
446
- # Install agentgateway
447
- cargo install agentgateway
491
+ # Start kubectl-mcp-server with streamable-http transport
492
+ kubectl-mcp-server --transport streamable-http --port 8000
493
+ ```
448
494
 
449
- # Configure kubectl-mcp-server as upstream
495
+ Create `gateway.yaml`:
496
+
497
+ ```yaml
498
+ binds:
499
+ - port: 3000
500
+ listeners:
501
+ - routes:
502
+ - backends:
503
+ - mcp:
504
+ targets:
505
+ - name: kubectl-mcp-server
506
+ mcp:
507
+ host: http://localhost:8000/mcp
508
+ ```
509
+
510
+ ```bash
511
+ # Run agentgateway
450
512
  agentgateway --config gateway.yaml
451
513
  ```
452
514
 
515
+ Connect MCP clients to `http://localhost:3000/mcp`. All 127 tools are discoverable through the gateway.
516
+
453
517
  ## Kubernetes Deployment
454
518
 
455
519
  Deploy kubectl-mcp-server directly in your Kubernetes cluster for centralized access.
@@ -516,7 +580,7 @@ See [deploy/](deploy/) for full manifests and configuration options.
516
580
 
517
581
  ### kagent Integration (AI Agents)
518
582
 
519
- [kagent](https://github.com/kagent-dev/kagent) is a Kubernetes-native AI agent framework (CNCF project). Register kubectl-mcp-server as a ToolServer to give your agents 121 K8s management tools.
583
+ [kagent](https://github.com/kagent-dev/kagent) is a Kubernetes-native AI agent framework (CNCF project). Register kubectl-mcp-server as a ToolServer to give your agents 127 K8s management tools.
520
584
 
521
585
  ```bash
522
586
  # Install kagent
@@ -548,7 +612,7 @@ The MCP server implements the [Model Context Protocol](https://github.com/modelc
548
612
  ```
549
613
  kubectl_mcp_tool/
550
614
  ├── mcp_server.py # Main server (FastMCP, transports)
551
- ├── tools/ # 121 MCP tools organized by category
615
+ ├── tools/ # 127 MCP tools organized by category
552
616
  │ ├── pods.py # Pod management & diagnostics
553
617
  │ ├── deployments.py # Deployments, StatefulSets, DaemonSets
554
618
  │ ├── core.py # Namespaces, ConfigMaps, Secrets
@@ -559,7 +623,8 @@ kubectl_mcp_tool/
559
623
  │ ├── helm.py # Complete Helm v3 operations
560
624
  │ ├── operations.py # kubectl apply/patch/describe/etc
561
625
  │ ├── diagnostics.py # Metrics, namespace comparison
562
- └── cost.py # Resource optimization & cost analysis
626
+ ├── cost.py # Resource optimization & cost analysis
627
+ │ └── ui.py # MCP-UI interactive dashboards
563
628
  ├── resources/ # 8 MCP Resources for data exposure
564
629
  ├── prompts/ # 8 MCP Prompts for workflows
565
630
  └── cli/ # CLI interface
@@ -654,5 +719,4 @@ MIT License - see [LICENSE](LICENSE) for details.
654
719
  - [PyPI Package](https://pypi.org/project/kubectl-mcp-server/)
655
720
  - [npm Package](https://www.npmjs.com/package/kubectl-mcp-server)
656
721
  - [Docker Hub](https://hub.docker.com/r/rohitghumare64/kubectl-mcp-server)
657
- - [agentregistry](https://aregistry.ai) - MCP Server Registry
658
722
  - [GitHub Issues](https://github.com/rohitg00/kubectl-mcp-server/issues)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kubectl-mcp-server",
3
- "version": "1.12.0",
4
- "description": "A Model Context Protocol (MCP) server for Kubernetes that enables AI assistants like Claude, Cursor, and others to interact with Kubernetes clusters through natural language",
3
+ "version": "1.13.0",
4
+ "description": "A Model Context Protocol (MCP) server for Kubernetes with 127+ tools, 8 resources, and 8 prompts for AI assistants",
5
5
  "keywords": [
6
6
  "kubernetes",
7
7
  "kubectl",
@@ -11,7 +11,8 @@
11
11
  "cursor",
12
12
  "ai",
13
13
  "devops",
14
- "k8s"
14
+ "k8s",
15
+ "mcp-ui"
15
16
  ],
16
17
  "author": "Rohit Ghumare",
17
18
  "license": "MIT",