Skip to content

Conversation

juharris
Copy link
Contributor

@juharris juharris commented Oct 1, 2025

⚠️ Change call_tool in Client to return the full response.

Motivation and Context

Helps get structuredContent and errors.

More like Python does:
https://github.com/modelcontextprotocol/python-sdk/blob/3e798bfc01856df711b921f7f3b55379fbd087e4/src/mcp/client/session.py#L279

How Has This Been Tested?

Unit test

Breaking Changes

⚠️ YES!

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@juharris juharris marked this pull request as ready for review October 1, 2025 18:52
@juharris juharris force-pushed the client-call_tool_raw branch from 0bff451 to ae60e2d Compare October 1, 2025 19:18
@juharris juharris changed the title [client] Add call_tool_raw method to get the full tool response to help get structuredContent [client] Change call_tool method to return the full tool response to help get structuredContent Oct 1, 2025
@topherbullock topherbullock merged commit c0f7605 into modelcontextprotocol:main Oct 1, 2025
5 checks passed
@juharris juharris deleted the client-call_tool_raw branch October 1, 2025 19:38
@topherbullock topherbullock mentioned this pull request Oct 15, 2025
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.

3 participants