Skip to content

fix(core): expose MCP output schemas to code mode#35502

Merged
rekram1-node merged 1 commit into
v2from
mcp-output-types
Jul 6, 2026
Merged

fix(core): expose MCP output schemas to code mode#35502
rekram1-node merged 1 commit into
v2from
mcp-output-types

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • preserve MCP outputSchema metadata through v2 discovery and catalog projection
  • attach declared output schemas to dynamic MCP tools so Code Mode renders typed return values
  • retain unknown for servers and tolerant fallback paths that do not provide a valid output schema

Follow-up to #35500.

Test plan

  • bun test test/mcp.test.ts from packages/core
  • real paginated stdio MCP discovery retains both output schemas
  • Code Mode advertises the MCP result as Promise<{ ok: boolean }>

@rekram1-node rekram1-node merged commit 4e019ba into v2 Jul 6, 2026
9 checks passed
@rekram1-node rekram1-node deleted the mcp-output-types branch July 6, 2026 04:12
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.

1 participant