Repository navigation
fix(proxy): return full CallToolResult so structuredContent survives outputSchema validation - #15
Open
zachledoux wants to merge 1 commit into
Open
zachledoux wants to merge 1 commit into
zachledoux wants to merge 1 commit into
Conversation
handle_call_tool returned only result.content, discarding result.structuredContent. Since handle_list_tools forwards each tool's outputSchema, any tool with a schema (e.g. search_deepgram_knowledge_sources) failed MCP output-schema validation with "outputSchema defined but no structured output returned" on schema-validating clients. Return the remote CallToolResult unchanged so structuredContent and isError pass through. Verified: structuredContent present, isError false, real results returned.
6 of 7 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ran ruff format, ruff check, mypy (strict), and pytest locally, all pass (40/40).
Problem
handle_call_toolreturned onlyresult.content, discardingresult.structuredContent. Sincehandle_list_toolsforwards each remote tool's definition including itsoutputSchema, any tool with a schema (e.g.search_deepgram_knowledge_sources) fails MCP output-schema validation on schema-validating clients (Claude Code) with:Output validation error: outputSchema defined but no structured output returned
This makes the proxy's tools unusable from clients that enforce the MCP structured-output contract.
Fix
Return the remote
CallToolResultunchanged sostructuredContentandisErrorpass through untouched.Verification
Tested against a patched copy on PYTHONPATH:
structuredContentpresent (was absent),isErrorfalse (was true), real results returned (was an error string).Environment: deepgram-mcp 0.1.1 via deepctl-cmd-mcp 0.1.15 / deepctl 0.3.0; client Claude Code (enforces the 2026-07-28 structured-output validation).