Files
codegraph/__tests__
Aaron Queen 18d65f8e10 fix(mcp): return status and stale refusals as text only (#2088)
Claude Code shows the model a tool result's structuredContent in place
of its content text, under every protocol version. codegraph_status and
explore's stale-index refusal both set structuredContent.freshness, so
the model saw a JSON object instead of the refusal, its retry guidance
or the status report. The text already carries every field, and nothing
in the codebase reads structuredContent, so both results drop it.

The tests now assert that the field is absent and that the text keeps
the refusal line and the stale file list.
2026-09-29 16:19:52 -06:00
..