Align MCP schema validation: remove "remote" from generic types, enforce strict properties#11725
Closed
Align MCP schema validation: remove "remote" from generic types, enforce strict properties#11725
Conversation
- Remove "remote" from generic MCP tool type/mode enums (only valid for GitHub tool) - Change additionalProperties from true to false for strict validation - Add schema comments documenting the decisions - Schemas now consistently validate MCP configurations Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Align additionalProperties and enum values between schemas
Align MCP schema validation: remove "remote" from generic types, enforce strict properties
Jan 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Schema inconsistency between
main_workflow_schema.jsonandmcp_config_schema.json: the main schema's generic MCP tool definition incorrectly included"remote"in type/mode enums and used permissiveadditionalProperties: true, while the MCP config schema correctly restricted types and enforced strict validation.Changes
Removed
"remote"from generic MCP type/mode enums (lines ~3430, ~3435)"remote"is GitHub-tool specific (tools.github.mode), not a valid generic MCP server typestdio,http,localValidMCPTypes = ["stdio", "http", "local"]Enforced strict validation (line ~3475)
additionalProperties: true→falsein generic MCP tool definitionmcp_config_schema.json,stdio_mcp_tool, andhttp_mcp_toolAdded schema documentation
$commentfields explain type restrictions and validation rationaleSchema consistency
All MCP configurations now use uniform validation:
mcp_config_schema.jsonfalsestdio, http, localstdio_mcp_toolfalsestdio, localhttp_mcp_toolfalsehttpfalse✓stdio, http, local✓local, remoteBinary rebuilt to embed updated schemas.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.