Methods of undeclared capabilities return -32603 instead of -32601
Mantenedores costumam responder em até 1 dia
@koic já está trabalhando nisso.
Desde 14/10/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
On a server that only declares the tools capability, prompts/list (and the other prompt and resource methods) comes back as an Internal error instead of Method not found:
server = MCP::Server.new(name: "repro", version: "1.0.0", tools: [], capabilities: { tools: {} })
server.handle_json('{"jsonrpc":"2.0","id":1,"method":"prompts/list"}')
# => {"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"Internal error","data":"Server does not support prompts (required for prompts/list)"}}
server.handle_json('{"jsonrpc":"2.0","id":2,"method":"unknown/x"}')
# => {"jsonrpc":"2.0","id":2,"error":{"code":-32601,"message":"Method not found","data":"unknown/x"}}
Over Streamable HTTP on the 2026-07-28 path, the first one ends up as HTTP 200 with -32603, the second as 404 with -32601. The transport spec asks for the 404 in both cases:
If the server does not implement the requested RPC method, it MUST respond with
404 Not Foundand a JSON-RPC error with code-32601(Method not found).
(Streamable HTTP, Protocol Version Header)
For a client, "the server didn't declare prompts" and "the server has no prompts/list" mean the same thing, and -32603 reads as if the server crashed. I ran into it with the conformance suite (0.2.0-alpha.12, caching scenario against a tools-only server): prompts/list returned JSON-RPC error -32603: Internal error.
The mapping is in Server#handle_request: Methods::MissingRequiredCapabilityError is re-raised with error_type: :internal_error. Raising it with error_code: JsonRpcHandler::ErrorCode::METHOD_NOT_FOUND instead looks like it would fix both protocol eras.
Seen with 1.7.0; main at 9d12f51 has the same code.
- Linguagem predominante
- Ruby
- Estrelas
- 924
- Forks
- 136
- Merge médio
- 1d 5h
- PRs com merge (30d)
- 37
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de modelcontextprotocol/ruby-sdk
-
Empty members in the Accept header cause a 500Talvez já em andamento @koic assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
modelcontextprotocol/ruby-sdk#609 ·
Mantenedores costumam responder em até 1 dia
-
Error responses carry "id": null, which the MCP schema does not allowTalvez já em andamento @koic assumiu hoje. Abertabug
Dificuldade 3/5 Meio dia Facilidade para iniciantes 45/100
modelcontextprotocol/ruby-sdk#606 ·
Mantenedores costumam responder em até 1 dia
-
String request ids are limited to letters, digits, "_" and "-"Talvez já em andamento @koic assumiu há 1 dia. Abertabug
modelcontextprotocol/ruby-sdk#603 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Requests with "id": null are run like notificationsTalvez já em andamento @koic assumiu há 1 dia. Abertabug
modelcontextprotocol/ruby-sdk#601 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Support modelcontextprotocol/experimental-ext-triggers-eventsTalvez já em andamento @koic assumiu há 4 dias. Abertaenhancement
modelcontextprotocol/ruby-sdk#594 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de modelcontextprotocol/ruby-sdk
Issues semelhantes
-
NoMethodError in auth#createAbertabugsnag
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
JoeMcB/improvcoaches#827 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
TheOdinProject/curriculum#31465 ·
Mantenedores costumam responder em até 1 dia
-
area: docs eco: ruby good first issue help wanted lane: free-agent roadmap size: XS type: docs
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 66/100
arminazimi/evergreen#465 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
simp/puppetsync#120 ·
Mantenedores costumam responder em até 2 dias