From c68c1dfeabbac979dc6990261c5130ed997c6d24 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 4 Jan 2026 01:26:09 +0000 Subject: [PATCH 1/2] Initial plan From 3fbfb12c8375d843965f4ed1a60f5b5222d2dc7d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 4 Jan 2026 01:32:03 +0000 Subject: [PATCH 2/2] Add validation documentation to stdio_mcp_tool in included schema Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com> --- pkg/parser/schemas/included_file_schema.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/parser/schemas/included_file_schema.json b/pkg/parser/schemas/included_file_schema.json index 491cb152542..386cfec16bf 100644 --- a/pkg/parser/schemas/included_file_schema.json +++ b/pkg/parser/schemas/included_file_schema.json @@ -994,12 +994,14 @@ "command": { "type": "string", "minLength": 1, + "$comment": "Mutually exclusive with 'container' - only one execution mode can be specified. Validated by 'not.allOf' constraint below.", "description": "Command for stdio MCP connections" }, "container": { "type": "string", "pattern": "^[a-zA-Z0-9][a-zA-Z0-9/:_.-]*$", - "description": "Container image for stdio MCP connections (alternative to command)" + "$comment": "Mutually exclusive with 'command' - only one execution mode can be specified. Validated by 'not.allOf' constraint below.", + "description": "Container image for stdio MCP connections" }, "version": { "type": ["string", "number"], @@ -1032,6 +1034,7 @@ }, "network": { "type": "object", + "$comment": "Requires 'container' to be specified - network configuration only applies to container-based MCP servers. Validated by 'if/then' constraint in 'allOf' below.", "properties": { "allowed": { "type": "array", @@ -1064,6 +1067,7 @@ } }, "additionalProperties": false, + "$comment": "Validation constraints: (1) Mutual exclusion: 'command' and 'container' cannot both be specified. (2) Requirement: Either 'command' or 'container' must be provided (via 'anyOf'). (3) Dependency: 'network' requires 'container' (validated in 'allOf'). (4) Type constraint: When 'type' is 'stdio' or 'local', either 'command' or 'container' is required.", "anyOf": [ { "required": ["type"]