mcp-server-kubernetes 3.0.5 → 3.1.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.
|
@@ -23,11 +23,11 @@ export declare const CustomContainerConfig: z.ZodObject<{
|
|
|
23
23
|
limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
24
24
|
requests: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
limits?: Record<string, string> | undefined;
|
|
27
26
|
requests?: Record<string, string> | undefined;
|
|
28
|
-
}, {
|
|
29
27
|
limits?: Record<string, string> | undefined;
|
|
28
|
+
}, {
|
|
30
29
|
requests?: Record<string, string> | undefined;
|
|
30
|
+
limits?: Record<string, string> | undefined;
|
|
31
31
|
}>>;
|
|
32
32
|
env: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
33
|
name: z.ZodString;
|
|
@@ -58,8 +58,8 @@ export declare const CustomContainerConfig: z.ZodObject<{
|
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
image: string;
|
|
60
60
|
resources?: {
|
|
61
|
-
limits?: Record<string, string> | undefined;
|
|
62
61
|
requests?: Record<string, string> | undefined;
|
|
62
|
+
limits?: Record<string, string> | undefined;
|
|
63
63
|
} | undefined;
|
|
64
64
|
command?: string[] | undefined;
|
|
65
65
|
args?: string[] | undefined;
|
|
@@ -81,8 +81,8 @@ export declare const CustomContainerConfig: z.ZodObject<{
|
|
|
81
81
|
}, {
|
|
82
82
|
image: string;
|
|
83
83
|
resources?: {
|
|
84
|
-
limits?: Record<string, string> | undefined;
|
|
85
84
|
requests?: Record<string, string> | undefined;
|
|
85
|
+
limits?: Record<string, string> | undefined;
|
|
86
86
|
} | undefined;
|
|
87
87
|
command?: string[] | undefined;
|
|
88
88
|
args?: string[] | undefined;
|
|
@@ -57,8 +57,11 @@ export async function kubectlScale(k8sManager, input) {
|
|
|
57
57
|
return {
|
|
58
58
|
content: [
|
|
59
59
|
{
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
type: "text",
|
|
61
|
+
text: JSON.stringify({
|
|
62
|
+
success: true,
|
|
63
|
+
message: `Scaled ${resourceType} ${input.name} to ${input.replicas} replicas`,
|
|
64
|
+
}),
|
|
62
65
|
},
|
|
63
66
|
],
|
|
64
67
|
};
|
|
@@ -72,8 +75,11 @@ export async function kubectlScale(k8sManager, input) {
|
|
|
72
75
|
return {
|
|
73
76
|
content: [
|
|
74
77
|
{
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
type: "text",
|
|
79
|
+
text: JSON.stringify({
|
|
80
|
+
success: false,
|
|
81
|
+
message: error.message,
|
|
82
|
+
}),
|
|
77
83
|
},
|
|
78
84
|
],
|
|
79
85
|
};
|
|
@@ -81,8 +87,11 @@ export async function kubectlScale(k8sManager, input) {
|
|
|
81
87
|
return {
|
|
82
88
|
content: [
|
|
83
89
|
{
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
type: "text",
|
|
91
|
+
text: JSON.stringify({
|
|
92
|
+
success: false,
|
|
93
|
+
message: `Failed to scale resource: ${error.message}`,
|
|
94
|
+
}),
|
|
86
95
|
},
|
|
87
96
|
],
|
|
88
97
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-server-kubernetes",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "MCP server for interacting with Kubernetes clusters via kubectl",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@kubernetes/client-node": "1.3.0",
|
|
41
|
-
"@modelcontextprotocol/sdk": "1.
|
|
41
|
+
"@modelcontextprotocol/sdk": "1.25.2",
|
|
42
42
|
"express": "4.21.2",
|
|
43
43
|
"js-yaml": "4.1.1",
|
|
44
44
|
"yaml": "2.7.0",
|
|
45
|
-
"zod": "3.
|
|
45
|
+
"zod": "3.25.76"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/express": "5.0.1",
|