File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -963,40 +963,6 @@ def test_prompt_dict(name, arguments):
963963 assert SPANDATA .MCP_PROMPT_RESULT_MESSAGE_CONTENT not in span ["data" ]
964964
965965
966- @pytest .mark .asyncio
967- @pytest .mark .skip
968- async def test_resource_without_protocol (sentry_init , capture_events ):
969- """Test resource handler with URI without protocol scheme"""
970- sentry_init (
971- integrations = [MCPIntegration ()],
972- traces_sample_rate = 1.0 ,
973- )
974- events = capture_events ()
975-
976- server = Server ("test-server" )
977-
978- @server .read_resource ()
979- def test_resource (uri ):
980- return {"data" : "test" }
981-
982- with start_transaction (name = "mcp tx" ):
983- await stdio (
984- server ,
985- method = "resources/read" ,
986- params = {
987- "uri" : "https://example.com/resource" ,
988- },
989- request_id = "req-no-proto" ,
990- )
991-
992- (tx ,) = events
993- span = tx ["spans" ][0 ]
994-
995- assert span ["data" ][SPANDATA .MCP_RESOURCE_URI ] == "simple-path"
996- # No protocol should be set
997- assert SPANDATA .MCP_RESOURCE_PROTOCOL not in span ["data" ]
998-
999-
1000966@pytest .mark .asyncio
1001967async def test_tool_with_complex_arguments (sentry_init , capture_events ):
1002968 """Test tool handler with complex nested arguments"""
You can’t perform that action at this time.
0 commit comments