You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s.Require().NotNil(toolResult, "toolResult should not be nil")
262
+
s.Run("has error", func() {
263
+
s.Truef(toolResult.IsError, "call tool should fail")
264
+
s.Nilf(err, "call tool should not return error object")
265
+
})
266
+
s.Run("describes missing node", func() {
267
+
expectedMessage:="failed to get node stats summary for inexistent-node: failed to get node inexistent-node: the server could not find the requested resource (get nodes inexistent-node)"
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-core-tools.json
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,29 @@
67
67
},
68
68
"name": "nodes_log"
69
69
},
70
+
{
71
+
"annotations": {
72
+
"title": "Node: Stats Summary",
73
+
"readOnlyHint": true,
74
+
"destructiveHint": false,
75
+
"idempotentHint": false,
76
+
"openWorldHint": true
77
+
},
78
+
"description": "Get detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API. Provides comprehensive metrics including CPU, memory, filesystem, and network usage at the node, pod, and container levels. On systems with cgroup v2 and kernel 4.20+, also includes PSI (Pressure Stall Information) metrics that show resource pressure for CPU, memory, and I/O. See https://kubernetes.io/docs/reference/instrumentation/understand-psi-metrics/ for details on PSI metrics",
79
+
"inputSchema": {
80
+
"type": "object",
81
+
"properties": {
82
+
"name": {
83
+
"description": "Name of the node to get stats from",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools-multicluster-enum.json
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,37 @@
237
237
},
238
238
"name": "nodes_log"
239
239
},
240
+
{
241
+
"annotations": {
242
+
"title": "Node: Stats Summary",
243
+
"readOnlyHint": true,
244
+
"destructiveHint": false,
245
+
"idempotentHint": false,
246
+
"openWorldHint": true
247
+
},
248
+
"description": "Get detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API. Provides comprehensive metrics including CPU, memory, filesystem, and network usage at the node, pod, and container levels. On systems with cgroup v2 and kernel 4.20+, also includes PSI (Pressure Stall Information) metrics that show resource pressure for CPU, memory, and I/O. See https://kubernetes.io/docs/reference/instrumentation/understand-psi-metrics/ for details on PSI metrics",
249
+
"inputSchema": {
250
+
"type": "object",
251
+
"properties": {
252
+
"context": {
253
+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
254
+
"enum": [
255
+
"extra-cluster",
256
+
"fake-context"
257
+
],
258
+
"type": "string"
259
+
},
260
+
"name": {
261
+
"description": "Name of the node to get stats from",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools-multicluster.json
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,33 @@
213
213
},
214
214
"name": "nodes_log"
215
215
},
216
+
{
217
+
"annotations": {
218
+
"title": "Node: Stats Summary",
219
+
"readOnlyHint": true,
220
+
"destructiveHint": false,
221
+
"idempotentHint": false,
222
+
"openWorldHint": true
223
+
},
224
+
"description": "Get detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API. Provides comprehensive metrics including CPU, memory, filesystem, and network usage at the node, pod, and container levels. On systems with cgroup v2 and kernel 4.20+, also includes PSI (Pressure Stall Information) metrics that show resource pressure for CPU, memory, and I/O. See https://kubernetes.io/docs/reference/instrumentation/understand-psi-metrics/ for details on PSI metrics",
225
+
"inputSchema": {
226
+
"type": "object",
227
+
"properties": {
228
+
"context": {
229
+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
230
+
"type": "string"
231
+
},
232
+
"name": {
233
+
"description": "Name of the node to get stats from",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools-openshift.json
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,29 @@
173
173
},
174
174
"name": "nodes_log"
175
175
},
176
+
{
177
+
"annotations": {
178
+
"title": "Node: Stats Summary",
179
+
"readOnlyHint": true,
180
+
"destructiveHint": false,
181
+
"idempotentHint": false,
182
+
"openWorldHint": true
183
+
},
184
+
"description": "Get detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API. Provides comprehensive metrics including CPU, memory, filesystem, and network usage at the node, pod, and container levels. On systems with cgroup v2 and kernel 4.20+, also includes PSI (Pressure Stall Information) metrics that show resource pressure for CPU, memory, and I/O. See https://kubernetes.io/docs/reference/instrumentation/understand-psi-metrics/ for details on PSI metrics",
185
+
"inputSchema": {
186
+
"type": "object",
187
+
"properties": {
188
+
"name": {
189
+
"description": "Name of the node to get stats from",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools.json
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,29 @@
173
173
},
174
174
"name": "nodes_log"
175
175
},
176
+
{
177
+
"annotations": {
178
+
"title": "Node: Stats Summary",
179
+
"readOnlyHint": true,
180
+
"destructiveHint": false,
181
+
"idempotentHint": false,
182
+
"openWorldHint": true
183
+
},
184
+
"description": "Get detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API. Provides comprehensive metrics including CPU, memory, filesystem, and network usage at the node, pod, and container levels. On systems with cgroup v2 and kernel 4.20+, also includes PSI (Pressure Stall Information) metrics that show resource pressure for CPU, memory, and I/O. See https://kubernetes.io/docs/reference/instrumentation/understand-psi-metrics/ for details on PSI metrics",
185
+
"inputSchema": {
186
+
"type": "object",
187
+
"properties": {
188
+
"name": {
189
+
"description": "Name of the node to get stats from",
Description: "Get detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API. Provides comprehensive metrics including CPU, memory, filesystem, and network usage at the node, pod, and container levels. On systems with cgroup v2 and kernel 4.20+, also includes PSI (Pressure Stall Information) metrics that show resource pressure for CPU, memory, and I/O. See https://kubernetes.io/docs/reference/instrumentation/understand-psi-metrics/ for details on PSI metrics",
50
+
InputSchema: &jsonschema.Schema{
51
+
Type: "object",
52
+
Properties: map[string]*jsonschema.Schema{
53
+
"name": {
54
+
Type: "string",
55
+
Description: "Name of the node to get stats from",
0 commit comments