Skip to content

Add CallToolRaw support#968

Closed
rahultoppur wants to merge 2 commits into
modelcontextprotocol:mainfrom
rahultoppur:rtoppur/call-tool-raw
Closed

Add CallToolRaw support#968
rahultoppur wants to merge 2 commits into
modelcontextprotocol:mainfrom
rahultoppur:rtoppur/call-tool-raw

Conversation

@rahultoppur
Copy link
Copy Markdown

@rahultoppur rahultoppur commented May 22, 2026

Implements the enhancement in #967.

MCP Gateway implementations frequently forward the results of a tools/call to clients unchanged. Unmarshaling ClientSession.CallTool into a *CallToolResult is expensive when proxying large tool responses. This change adds a CallToolRaw which implements this tools/call passthrough.

- Add RawContent which gateways/proxies can use
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