We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f5cb28 commit 4e8666aCopy full SHA for 4e8666a
tests/issues/test_1579_resource_error_code.py
@@ -23,10 +23,6 @@ async def test_unknown_resource_returns_invalid_params_error_code():
23
"""Reading an unknown resource returns INVALID_PARAMS (-32602), not 0."""
24
mcp = MCPServer()
25
26
- @mcp.resource("resource://exists")
27
- def existing_resource():
28
- return "data"
29
-
30
async with Client(mcp) as client:
31
with pytest.raises(MCPError) as exc_info:
32
await client.read_resource("resource://does-not-exist")
0 commit comments