Skip to content

Commit b46abd3

Browse files
committed
fix(test): tests expect context parameter in tool defs
Signed-off-by: Calum Murray <[email protected]>
1 parent c76dc18 commit b46abd3

File tree

6 files changed

+213
-237
lines changed

6 files changed

+213
-237
lines changed

pkg/mcp/testdata/toolsets-config-tools.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111
"inputSchema": {
1212
"type": "object",
1313
"properties": {
14-
"cluster": {
15-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
16-
"enum": [
17-
"additional-cluster",
18-
"fake"
19-
],
20-
"type": "string"
21-
},
2214
"minified": {
2315
"description": "Return a minified version of the configuration. If set to true, keeps only the current-context and the relevant pieces of the configuration for that context. If set to false, all contexts, clusters, auth-infos, and users are returned in the configuration. (Optional, default true)",
2416
"type": "boolean"

pkg/mcp/testdata/toolsets-core-tools.json

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"inputSchema": {
1212
"type": "object",
1313
"properties": {
14-
"cluster": {
15-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
14+
"context": {
15+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
1616
"enum": [
17-
"additional-cluster",
18-
"fake"
17+
"additional-context",
18+
"fake-context"
1919
],
2020
"type": "string"
2121
},
@@ -39,11 +39,11 @@
3939
"inputSchema": {
4040
"type": "object",
4141
"properties": {
42-
"cluster": {
43-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
42+
"context": {
43+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
4444
"enum": [
45-
"additional-cluster",
46-
"fake"
45+
"additional-context",
46+
"fake-context"
4747
],
4848
"type": "string"
4949
}
@@ -63,11 +63,11 @@
6363
"inputSchema": {
6464
"type": "object",
6565
"properties": {
66-
"cluster": {
67-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
66+
"context": {
67+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
6868
"enum": [
69-
"additional-cluster",
70-
"fake"
69+
"additional-context",
70+
"fake-context"
7171
],
7272
"type": "string"
7373
},
@@ -98,11 +98,11 @@
9898
"inputSchema": {
9999
"type": "object",
100100
"properties": {
101-
"cluster": {
102-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
101+
"context": {
102+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
103103
"enum": [
104-
"additional-cluster",
105-
"fake"
104+
"additional-context",
105+
"fake-context"
106106
],
107107
"type": "string"
108108
},
@@ -145,11 +145,11 @@
145145
"inputSchema": {
146146
"type": "object",
147147
"properties": {
148-
"cluster": {
149-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
148+
"context": {
149+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
150150
"enum": [
151-
"additional-cluster",
152-
"fake"
151+
"additional-context",
152+
"fake-context"
153153
],
154154
"type": "string"
155155
},
@@ -180,11 +180,11 @@
180180
"inputSchema": {
181181
"type": "object",
182182
"properties": {
183-
"cluster": {
184-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
183+
"context": {
184+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
185185
"enum": [
186-
"additional-cluster",
187-
"fake"
186+
"additional-context",
187+
"fake-context"
188188
],
189189
"type": "string"
190190
},
@@ -209,11 +209,11 @@
209209
"inputSchema": {
210210
"type": "object",
211211
"properties": {
212-
"cluster": {
213-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
212+
"context": {
213+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
214214
"enum": [
215-
"additional-cluster",
216-
"fake"
215+
"additional-context",
216+
"fake-context"
217217
],
218218
"type": "string"
219219
},
@@ -245,11 +245,11 @@
245245
"inputSchema": {
246246
"type": "object",
247247
"properties": {
248-
"cluster": {
249-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
248+
"context": {
249+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
250250
"enum": [
251-
"additional-cluster",
252-
"fake"
251+
"additional-context",
252+
"fake-context"
253253
],
254254
"type": "string"
255255
},
@@ -294,11 +294,11 @@
294294
"inputSchema": {
295295
"type": "object",
296296
"properties": {
297-
"cluster": {
298-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
297+
"context": {
298+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
299299
"enum": [
300-
"additional-cluster",
301-
"fake"
300+
"additional-context",
301+
"fake-context"
302302
],
303303
"type": "string"
304304
},
@@ -337,11 +337,11 @@
337337
"inputSchema": {
338338
"type": "object",
339339
"properties": {
340-
"cluster": {
341-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
340+
"context": {
341+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
342342
"enum": [
343-
"additional-cluster",
344-
"fake"
343+
"additional-context",
344+
"fake-context"
345345
],
346346
"type": "string"
347347
},
@@ -379,11 +379,11 @@
379379
"inputSchema": {
380380
"type": "object",
381381
"properties": {
382-
"cluster": {
383-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
382+
"context": {
383+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
384384
"enum": [
385-
"additional-cluster",
386-
"fake"
385+
"additional-context",
386+
"fake-context"
387387
],
388388
"type": "string"
389389
},
@@ -410,11 +410,11 @@
410410
"inputSchema": {
411411
"type": "object",
412412
"properties": {
413-
"cluster": {
414-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
413+
"context": {
414+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
415415
"enum": [
416-
"additional-cluster",
417-
"fake"
416+
"additional-context",
417+
"fake-context"
418418
],
419419
"type": "string"
420420
},
@@ -455,11 +455,11 @@
455455
"inputSchema": {
456456
"type": "object",
457457
"properties": {
458-
"cluster": {
459-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
458+
"context": {
459+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
460460
"enum": [
461-
"additional-cluster",
462-
"fake"
461+
"additional-context",
462+
"fake-context"
463463
],
464464
"type": "string"
465465
},
@@ -500,11 +500,11 @@
500500
"inputSchema": {
501501
"type": "object",
502502
"properties": {
503-
"cluster": {
504-
"description": "Optional parameter selecting which cluster to run the tool in. Defaults to fake if not set",
503+
"context": {
504+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
505505
"enum": [
506-
"additional-cluster",
507-
"fake"
506+
"additional-context",
507+
"fake-context"
508508
],
509509
"type": "string"
510510
},
@@ -533,4 +533,4 @@
533533
},
534534
"name": "resources_list"
535535
}
536-
]
536+
]

0 commit comments

Comments
 (0)