Skip to content

fix: correct JSDoc on McpServerConfigSchema to describe actual resolver mechanics#310

Merged
sroussey merged 2 commits intoclaude/add-mcp-task-registry-y9KGEfrom
copilot/sub-pr-307-again
Mar 14, 2026
Merged

fix: correct JSDoc on McpServerConfigSchema to describe actual resolver mechanics#310
sroussey merged 2 commits intoclaude/add-mcp-task-registry-y9KGEfrom
copilot/sub-pr-307-again

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

The previous doc comment incorrectly stated that server_id inside McpServerConfigSchema is what the input resolver acts on. In reality, the resolver acts on task input properties annotated with format: "mcp-server" — when such a property (e.g. server) receives a plain string, the resolver substitutes the full server config object from the registry.

Changes

  • McpServerSchema.ts: Rewrote the McpServerConfigSchema JSDoc to correctly describe that the format: "mcp-server" annotation on the schema type is what triggers resolution, and that resolution occurs on the consuming task's input property (not on server_id within this schema).

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…ibe resolution mechanism

Co-authored-by: sroussey <127349+sroussey@users.noreply.github.com>
Copilot AI changed the title [WIP] [WIP] Address feedback on MCP server registry and task server references fix: correct JSDoc on McpServerConfigSchema to describe actual resolver mechanics Mar 13, 2026
Copilot AI requested a review from sroussey March 13, 2026 22:45
@sroussey sroussey marked this pull request as ready for review March 14, 2026 00:03
@sroussey sroussey merged commit 2fb2b89 into claude/add-mcp-task-registry-y9KGE Mar 14, 2026
@sroussey sroussey deleted the copilot/sub-pr-307-again branch March 19, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants