mcp-server-kubernetes 3.9.1 → 3.9.3
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.
|
@@ -29,6 +29,11 @@ export declare const kubectlGenericSchema: {
|
|
|
29
29
|
description: string;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
|
+
allNamespaces: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
32
37
|
outputFormat: {
|
|
33
38
|
type: string;
|
|
34
39
|
description: string;
|
|
@@ -61,6 +66,7 @@ export declare function kubectlGeneric(k8sManager: KubernetesManager, input: {
|
|
|
61
66
|
resourceType?: string;
|
|
62
67
|
name?: string;
|
|
63
68
|
namespace?: string;
|
|
69
|
+
allNamespaces?: boolean;
|
|
64
70
|
outputFormat?: string;
|
|
65
71
|
flags?: Record<string, any>;
|
|
66
72
|
args?: string[];
|
|
@@ -29,6 +29,11 @@ export const kubectlGenericSchema = {
|
|
|
29
29
|
description: "Resource name",
|
|
30
30
|
},
|
|
31
31
|
namespace: namespaceParameter,
|
|
32
|
+
allNamespaces: {
|
|
33
|
+
type: "boolean",
|
|
34
|
+
description: "If true, run the command across all namespaces",
|
|
35
|
+
default: false,
|
|
36
|
+
},
|
|
32
37
|
outputFormat: {
|
|
33
38
|
type: "string",
|
|
34
39
|
description: "Output format (e.g. json, yaml, wide)",
|
|
@@ -69,8 +74,12 @@ export async function kubectlGeneric(k8sManager, input) {
|
|
|
69
74
|
if (input.name) {
|
|
70
75
|
cmdArgs.push(input.name);
|
|
71
76
|
}
|
|
72
|
-
// Add namespace
|
|
73
|
-
|
|
77
|
+
// Add namespace scoping: --all-namespaces takes precedence over a
|
|
78
|
+
// specific namespace (kubectl rejects using both together)
|
|
79
|
+
if (input.allNamespaces) {
|
|
80
|
+
cmdArgs.push("--all-namespaces");
|
|
81
|
+
}
|
|
82
|
+
else if (input.namespace) {
|
|
74
83
|
cmdArgs.push(`--namespace=${input.namespace}`);
|
|
75
84
|
}
|
|
76
85
|
// Add output format if provided
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-server-kubernetes",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.3",
|
|
4
4
|
"description": "MCP server for interacting with Kubernetes clusters via kubectl",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@kubernetes/client-node": "1.3.0",
|
|
41
41
|
"@modelcontextprotocol/sdk": "1.26.0",
|
|
42
42
|
"@opentelemetry/api": "1.9.1",
|
|
43
|
-
"@opentelemetry/auto-instrumentations-node": "0.
|
|
44
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "0.
|
|
43
|
+
"@opentelemetry/auto-instrumentations-node": "0.77.0",
|
|
44
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "0.219.0",
|
|
45
45
|
"@opentelemetry/resources": "2.7.1",
|
|
46
|
-
"@opentelemetry/sdk-node": "0.
|
|
46
|
+
"@opentelemetry/sdk-node": "0.219.0",
|
|
47
47
|
"@opentelemetry/semantic-conventions": "1.40.0",
|
|
48
48
|
"express": "4.21.2",
|
|
49
49
|
"js-yaml": "4.1.1",
|