Merge pull request #488 from koic/raise_resource_not_found_in_conformance_fixture

[Conformance] Raise `ResourceNotFoundError` for unknown resource URIs
This commit is contained in:
Koichi ITO 2026-08-08 15:15:16 +09:00 • committed by GitHub
commit 8e30f325ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -942,7 +942,9 @@ module Conformance
).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