Skip to content

fix(mcp): answer resources/prompts discovery with empty lists, not -32601#1015

Merged
DeusData merged 1 commit into
mainfrom
fix/mcp-discovery-empty-lists
Jul 11, 2026
Merged

fix(mcp): answer resources/prompts discovery with empty lists, not -32601#1015
DeusData merged 1 commit into
mainfrom
fix/mcp-discovery-empty-lists

Conversation

@DeusData

Copy link
Copy Markdown
Owner

Closes #958.

Cline (and other MCP clients) probe resources/list, prompts/list, and resources/templates/list on connect regardless of declared capabilities. This server answered -32601 Method not found, which Cline surfaces as a failed connection (status=error) even though tools work fine. Reproduced locally against the current binary: all three methods errored.

Fix: empty lists ({"resources":[]}, {"prompts":[]}, {"resourceTemplates":[]}) — the interoperable answer for a tools-only server.

Reproduce-first: mcp_discovery_methods_return_empty_lists — RED on the unhandled dispatch, GREEN with the fix; mcp suite 148/148; lint-ci clean.

@DeusData DeusData added this to the 0.9.1-rc milestone Jul 11, 2026
@DeusData DeusData enabled auto-merge July 11, 2026 00:25
…2601

Clients like Cline probe resources/list, prompts/list and
resources/templates/list on connect regardless of declared server
capabilities; the -32601 Method-not-found errors surfaced as a failed
connection (status=error) even though tools worked fine. Empty lists
are the interoperable answer for a tools-only server.

Reproduce-first: mcp_discovery_methods_return_empty_lists is RED on
the unhandled dispatch (Method not found) and GREEN with the empty
lists.

Closes #958

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
@DeusData DeusData merged commit 3ec08b4 into main Jul 11, 2026
21 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.

Cline connection throws status=error on resource and prompt template discovery queries

1 participant