Skip to content

fix: preserve client tool output schemas#343

Open
atesgoral wants to merge 1 commit into
modelcontextprotocol:mainfrom
atesgoral:fix/client-output-schema
Open

fix: preserve client tool output schemas#343
atesgoral wants to merge 1 commit into
modelcontextprotocol:mainfrom
atesgoral:fix/client-output-schema

Conversation

@atesgoral
Copy link
Copy Markdown
Contributor

@atesgoral atesgoral commented May 12, 2026

Summary

  • Preserve outputSchema from tools/list responses when constructing MCP::Client::Tool objects
  • Cover advertised and absent output schemas in client tool discovery tests

Why

The MCP tool definition includes optional outputSchema metadata for the structure of structuredContent returned by tools/call. Clients need this schema to validate structured tool results and to build typed integrations from discovered tool metadata.

Tests

  • dev test test TEST=test/mcp/client_test.rb
  • dev test test TEST=test/mcp/client/tool_test.rb
  • git diff --check

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