Skip to content

Say every MCP list is complete, so current clients accept it - #170

Merged
ralyodio merged 1 commit into
mainfrom
mcp-list-result-type
Sep 3, 2026
Merged

Say every MCP list is complete, so current clients accept it#170
ralyodio merged 1 commit into
mainfrom
mcp-list-result-type

Conversation

@ralyodio

@ralyodio ralyodio commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Why

Claude Code now speaks MCP protocol revision 2026-07-28, which requires a list result to carry resultType. The server already announces that revision through server/discover, but answered tools/list and resources/list without the field, so the client rejected both and /mcp showed rssamplifier as connected · tools fetch failed. The client log:

Failed to fetch tools: Invalid result for tools/list: missing required resultType — servers implementing protocol revision 2026-07-28 MUST include it

What

Every list this server answers is answered whole, so tools/list, resources/list, resources/templates/list and prompts/list now say resultType: 'complete'. A legacy client ignores the extra field. A test covers all four.

Verified

  • node --test test/mcp.test.js in apps/web: 25 pass, 0 fail.
  • Reproduced against prod with curl: initialize negotiates fine, tools/list answers in ~100 ms with 12 tools, but no resultType.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdYPdDEK8VXHzQKj8Ppp2g

Claude Code now speaks protocol revision 2026-07-28, which requires a
list result to carry resultType. The server already announces that
revision through server/discover, but answered tools/list and
resources/list without the field, so the client rejected both
("missing required resultType") and showed the server as connected
with no tools. Every list here is answered whole, so each one now says
resultType: 'complete'. A legacy client ignores the extra field.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JdYPdDEK8VXHzQKj8Ppp2g
@ralyodio
ralyodio marked this pull request as ready for review September 3, 2026 16:36
@ralyodio
ralyodio merged commit 40c98a8 into main Sep 3, 2026
3 checks passed
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