Skip to content

Commit 824614c

Browse files
authored
Merge pull request #79 from buildkite/catkins/fix-json-schema-error
Fix malformed json schema for `create_build` tool's input schema
2 parents 7fa1cf4 + cc13b2a commit 824614c

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

internal/buildkite/builds.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,17 +321,16 @@ func CreateBuild(ctx context.Context, client BuildsClient) (tool mcp.Tool, handl
321321
mcp.WithArray("environment",
322322
mcp.Items(
323323
map[string]any{
324-
"type": "object",
324+
"type": "object",
325+
"required": []string{"key", "value"},
325326
"properties": map[string]any{
326327
"key": map[string]any{
327328
"type": "string",
328329
"description": "The name of the environment variable",
329-
"required": true,
330330
},
331331
"value": map[string]any{
332332
"type": "string",
333333
"description": "The value of the environment variable",
334-
"required": true,
335334
},
336335
},
337336
},
@@ -340,17 +339,16 @@ func CreateBuild(ctx context.Context, client BuildsClient) (tool mcp.Tool, handl
340339
mcp.WithArray("metadata",
341340
mcp.Items(
342341
map[string]any{
343-
"type": "object",
342+
"type": "object",
343+
"required": []string{"key", "value"},
344344
"properties": map[string]any{
345345
"key": map[string]any{
346346
"type": "string",
347347
"description": "The name of the environment variable",
348-
"required": true,
349348
},
350349
"value": map[string]any{
351350
"type": "string",
352351
"description": "The value of the environment variable",
353-
"required": true,
354352
},
355353
},
356354
},

0 commit comments

Comments
 (0)