Skip to content

Add output schema to MCP tools and expose MCP tool results in code mode#14236

Merged
pakrym-oai merged 3 commits intomainfrom
pakrym/add-output-schema-to-mcp
Mar 10, 2026
Merged

Add output schema to MCP tools and expose MCP tool results in code mode#14236
pakrym-oai merged 3 commits intomainfrom
pakrym/add-output-schema-to-mcp

Conversation

@pakrym-oai
Copy link
Collaborator

Summary

  • drop McpToolOutput in favor of CallToolResult, moving its helpers to keep MCP tooling focused on the final result shape
  • wire the new schema definitions through code mode, context, handlers, and spec modules so MCP tools serialize the exact output shape expected by the model
  • extend code mode tests to cover multiple MCP call scenarios and ensure the serialized data matches the new schema
  • refresh JS runner helpers and protocol models alongside the schema changes

Testing

  • Not run (not requested)

@pakrym-oai pakrym-oai changed the title Add MCP output schema support and expand code mode serialization Add output schema to MCP tools and expose MCP tool results in code mode Mar 10, 2026
@pakrym-oai pakrym-oai merged commit c7e28cf into main Mar 10, 2026
31 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/add-output-schema-to-mcp branch March 10, 2026 22:25
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants