File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,19 +66,6 @@ def reset_request_ctx():
6666 pass
6767
6868
69- # Mock MCP types and structures
70- class MockURI :
71- """Mock URI object for resource testing"""
72-
73- def __init__ (self , uri_string ):
74- self .scheme = uri_string .split ("://" )[0 ] if "://" in uri_string else ""
75- self .path = uri_string .split ("://" )[1 ] if "://" in uri_string else uri_string
76- self ._uri_string = uri_string
77-
78- def __str__ (self ):
79- return self ._uri_string
80-
81-
8269class MockRequestContext :
8370 """Mock MCP request context"""
8471
@@ -114,21 +101,6 @@ def __init__(self, text):
114101 self .text = text
115102
116103
117- class MockPromptMessage :
118- """Mock PromptMessage object"""
119-
120- def __init__ (self , role , content_text ):
121- self .role = role
122- self .content = MockTextContent (content_text )
123-
124-
125- class MockGetPromptResult :
126- """Mock GetPromptResult object"""
127-
128- def __init__ (self , messages ):
129- self .messages = messages
130-
131-
132104def test_integration_patches_server (sentry_init ):
133105 """Test that MCPIntegration patches the Server class"""
134106 # Get original methods before integration
You can’t perform that action at this time.
0 commit comments