Enhance MCP schema properties with examples and improved descriptions#11772
Merged
Enhance MCP schema properties with examples and improved descriptions#11772
Conversation
- Add examples to registry property in stdio and http MCP tool definitions - Improve allowed property description and add comprehensive examples (*, tool lists) - Update entrypoint description to reference docker run --entrypoint - Add more entrypoint examples (/custom/entrypoint.sh, python) - Update examples in both tools section and $defs section for consistency Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add missing MCP properties to main workflow schema
Enhance MCP schema properties with examples and improved descriptions
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.
Four MCP server properties in
main_workflow_schema.jsonlacked examples and clear descriptions, creating a documentation gap where users couldn't discover these fields through schema validation despite full implementation support.Changes
registry(stdio + http)https://api.mcp.github.com/v0/servers/microsoft/markitdownallowed(stdio + http)["*"],["store_memory", "retrieve_memory"],["brave_web_search"]entrypoint(stdio)/custom/entrypoint.sh,pythonmounts(stdio)^[^:]+:[^:]+:(ro|rw)$- no changesExample Usage
Properties updated in:
properties.tools.additionalProperties.oneOf[1].properties$defs.stdio_mcp_tool.properties$defs.http_mcp_tool.propertiesOriginal prompt
This section details on the original issue you should resolve
<issue_title>[Code Quality] Add Missing MCP Properties to Main Workflow Schema</issue_title>
<issue_description>## Description
The
main_workflow_schema.jsonis missing 4 critical MCP server properties that are already implemented in the parser and actively used in workflows. This creates a schema documentation gap where users cannot discover these fields through schema validation, even though they work correctly in the implementation.Missing Properties
registry(string)pkg/parser/mcp.go:86,pkg/workflow/mcp-config-custom.go:582-584mcp_config_compilation_test.go(6 test cases)"https://api.mcp.github.com/v0/servers/microsoft/markitdown"allowed(array of strings)pkg/parser/mcp.go:88,pkg/workflow/mcp-config-custom.go:651-653["*"],["store_memory", "retrieve_memory"]entrypoint(string)pkg/types/mcp.go:23,pkg/workflow/mcp-config-custom.go:602-604"/bin/sh","/custom/entrypoint.sh","python"mounts(array)pkg/types/mcp.go:25,pkg/workflow/mcp-config-custom.go:608-610^[^:]+:[^:]+:(ro|rw)$["/host/path:/container/path:ro"]Suggested Changes
Update
pkg/parser/schemas/main_workflow_schema.json(lines 3398-3477) to add these properties:{ "registry": { "type": "string", "description": "URI to the installation location when MCP is installed from a registry", "examples": ["https://api.mcp.github.com/v0/servers/microsoft/markitdown"] }, "entrypoint": { "type": "string", "description": "Optional entrypoint override for container (equivalent to docker run --entrypoint)", "examples": ["/bin/sh", "/custom/entrypoint.sh", "python"] }, "mounts": { "type": "array", "items": { "type": "string", "pattern": "^[^:]+:[^:]+:(ro|rw)$" }, "description": "Volume mounts for container (format: 'source:dest:mode' where mode is 'ro' or 'rw')", "examples": [["/host/path:/container/path:ro", "/tmp/cache:/app/cache:rw"]] }, "allowed": { "type": "array", "items": {"type": "string"}, "description": "List of allowed tool names for this MCP server", "examples": [["*"], ["store_memory", "retrieve_memory"], ["brave_web_search"]] } }Files Affected
pkg/parser/schemas/main_workflow_schema.json(lines 3398-3477)registryfield to user guides (other 3 already documented)Success Criteria
mountspattern:^[^:]+:[^:]+:(ro|rw)$)make buildsucceeds (schemas are embedded with//go:embed)make recompileregenerates workflows successfullyAdditional Context
Important: After modifying the schema JSON file, you must rebuild the binary with
make buildbecause schema files are embedded using//go:embeddirectives inpkg/parser/schema.go.Testing workflow:
pkg/parser/schemas/main_workflow_schema.jsonmake buildto rebuild with embedded schema./gh-aw compile test-workflow.mdto verifymake testto ensure no regressionsSource
Extracted from Schema Consistency Check discussion githubnext/gh-aw#11706 - Strategy-004 Cross-Schema Consistency Analysis (2026-01-24)
Priority
High - Schema documentation is incomplete, preventing users from discovering implemented features. No implementation changes needed, only schema updates.
Comments on the Issue (you are @copilot in this...
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.