diff --git a/conformance/server.rb b/conformance/server.rb index 7b697d83..4b303d7a 100644 --- a/conformance/server.rb +++ b/conformance/server.rb @@ -577,7 +577,9 @@ def configure_resources_read_handler(server) ).to_h, ] else - [] + # Per SEP-2164, an unknown URI answers with -32602 carrying the URI in `error.data`; + # an empty `contents` array is forbidden. + raise MCP::Server::ResourceNotFoundError.new(uri, params) end end end