@futuretea/rancher-mcp-server 0.4.4 → 0.4.5

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 +37 -3
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -19,6 +19,9 @@ A [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for Ra
19
19
  - Describe resources with related events (similar to `kubectl describe`)
20
20
  - List and filter Kubernetes events by namespace, object name, and object kind
21
21
  - Query container logs with filtering (tail lines, time range, timestamps, keyword search)
22
+ - Multi-pod log aggregation via label selector with time-based sorting
23
+ - View rollout history for Deployments
24
+ - Analyze node health and resource usage
22
25
  - Inspect pods with parent workload, metrics, and logs
23
26
  - Show dependency/dependent trees for any resource (inspired by kube-lineage)
24
27
  - **Rancher Resources via Norman API**: List clusters and projects
@@ -334,20 +337,26 @@ List Kubernetes resources by kind.
334
337
  <details>
335
338
  <summary>kubernetes_logs</summary>
336
339
 
337
- Get logs from a pod container.
340
+ Get logs from a pod container. Supports multi-pod log aggregation via label selector with time-based sorting.
338
341
 
339
342
  | Parameter | Type | Required | Description |
340
343
  |-----------|------|----------|-------------|
341
344
  | `cluster` | string | Yes | Cluster ID |
342
345
  | `namespace` | string | Yes | Namespace |
343
- | `name` | string | Yes | Pod name |
346
+ | `name` | string | No | Pod name (required if labelSelector not specified) |
347
+ | `labelSelector` | string | No | Label selector for multi-pod log aggregation (e.g., "app=nginx") |
344
348
  | `container` | string | No | Container name (empty = all containers) |
345
349
  | `tailLines` | integer | No | Lines from end (default: 100) |
346
350
  | `sinceSeconds` | integer | No | Logs from last N seconds |
347
- | `timestamps` | boolean | No | Include timestamps (default: false) |
351
+ | `timestamps` | boolean | No | Include timestamps (default: true) |
348
352
  | `previous` | boolean | No | Previous container instance (default: false) |
349
353
  | `keyword` | string | No | Filter log lines containing this keyword (case-insensitive) |
350
354
 
355
+ **Notes:**
356
+ - When `labelSelector` is specified, logs from all matching pods are aggregated and sorted by timestamp
357
+ - Output format for single pod: `[container] timestamp content`
358
+ - Output format for multi-pod: `[pod/container] timestamp content`
359
+
351
360
  </details>
352
361
 
353
362
  <details>
@@ -363,6 +372,31 @@ Get pod diagnostics: details, parent workload, metrics, and logs.
363
372
 
364
373
  </details>
365
374
 
375
+ <details>
376
+ <summary>kubernetes_rollout_history</summary>
377
+
378
+ View rollout history for Deployments. Shows revision history with change annotations (similar to `kubectl rollout history`).
379
+
380
+ | Parameter | Type | Required | Description |
381
+ |-----------|------|----------|-------------|
382
+ | `cluster` | string | Yes | Cluster ID |
383
+ | `namespace` | string | Yes | Namespace |
384
+ | `name` | string | Yes | Deployment name |
385
+
386
+ </details>
387
+
388
+ <details>
389
+ <summary>kubernetes_node_analysis</summary>
390
+
391
+ Analyze node health and resource usage. Shows node capacity, allocatable resources, pod distribution, and identifies potential issues.
392
+
393
+ | Parameter | Type | Required | Description |
394
+ |-----------|------|----------|-------------|
395
+ | `cluster` | string | Yes | Cluster ID |
396
+ | `name` | string | No | Node name (if empty, analyzes all nodes) |
397
+
398
+ </details>
399
+
366
400
  <details>
367
401
  <summary>kubernetes_describe</summary>
368
402
 
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@futuretea/rancher-mcp-server",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Model Context Protocol (MCP) server for Rancher multi-cluster management",
5
5
  "main": "./bin/index.js",
6
6
  "bin": {
7
7
  "rancher-mcp-server": "bin/index.js"
8
8
  },
9
9
  "optionalDependencies": {
10
- "@futuretea/rancher-mcp-server-darwin-amd64": "0.4.4",
11
- "@futuretea/rancher-mcp-server-darwin-arm64": "0.4.4",
12
- "@futuretea/rancher-mcp-server-linux-amd64": "0.4.4",
13
- "@futuretea/rancher-mcp-server-linux-arm64": "0.4.4",
14
- "@futuretea/rancher-mcp-server-windows-amd64": "0.4.4",
15
- "@futuretea/rancher-mcp-server-windows-arm64": "0.4.4"
10
+ "@futuretea/rancher-mcp-server-darwin-amd64": "0.4.5",
11
+ "@futuretea/rancher-mcp-server-darwin-arm64": "0.4.5",
12
+ "@futuretea/rancher-mcp-server-linux-amd64": "0.4.5",
13
+ "@futuretea/rancher-mcp-server-linux-arm64": "0.4.5",
14
+ "@futuretea/rancher-mcp-server-windows-amd64": "0.4.5",
15
+ "@futuretea/rancher-mcp-server-windows-arm64": "0.4.5"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",