mcp-server-kubernetes 3.9.2 → 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.
@@ -1,6 +1,6 @@
1
1
  export declare const serverConfig: {
2
2
  readonly name: "kubernetes";
3
- readonly version: "3.9.2";
3
+ readonly version: "3.9.3";
4
4
  readonly capabilities: {
5
5
  readonly resources: {};
6
6
  readonly tools: {};
@@ -1,6 +1,6 @@
1
1
  export const serverConfig = {
2
2
  name: "kubernetes",
3
- version: "3.9.2",
3
+ version: "3.9.3",
4
4
  capabilities: {
5
5
  resources: {},
6
6
  tools: {},
@@ -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 if provided
73
- if (input.namespace) {
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.2",
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",