@@ -98,13 +98,13 @@ def test_simple_text() -> str:
9898@mcp .tool ()
9999def test_image_content () -> list [ImageContent ]:
100100 """Tests image content response"""
101- return [ImageContent (type = "image" , data = TEST_IMAGE_BASE64 , mimeType = "image/png" )]
101+ return [ImageContent (type = "image" , data = TEST_IMAGE_BASE64 , mime_type = "image/png" )]
102102
103103
104104@mcp .tool ()
105105def test_audio_content () -> list [AudioContent ]:
106106 """Tests audio content response"""
107- return [AudioContent (type = "audio" , data = TEST_AUDIO_BASE64 , mimeType = "audio/wav" )]
107+ return [AudioContent (type = "audio" , data = TEST_AUDIO_BASE64 , mime_type = "audio/wav" )]
108108
109109
110110@mcp .tool ()
@@ -115,7 +115,7 @@ def test_embedded_resource() -> list[EmbeddedResource]:
115115 type = "resource" ,
116116 resource = TextResourceContents (
117117 uri = "test://embedded-resource" ,
118- mimeType = "text/plain" ,
118+ mime_type = "text/plain" ,
119119 text = "This is an embedded resource content." ,
120120 ),
121121 )
@@ -127,12 +127,12 @@ def test_multiple_content_types() -> list[TextContent | ImageContent | EmbeddedR
127127 """Tests response with multiple content types (text, image, resource)"""
128128 return [
129129 TextContent (type = "text" , text = "Multiple content types test:" ),
130- ImageContent (type = "image" , data = TEST_IMAGE_BASE64 , mimeType = "image/png" ),
130+ ImageContent (type = "image" , data = TEST_IMAGE_BASE64 , mime_type = "image/png" ),
131131 EmbeddedResource (
132132 type = "resource" ,
133133 resource = TextResourceContents (
134134 uri = "test://mixed-content-resource" ,
135- mimeType = "application/json" ,
135+ mime_type = "application/json" ,
136136 text = '{"test": "data", "value": 123}' ,
137137 ),
138138 ),
@@ -164,7 +164,7 @@ async def test_tool_with_progress(ctx: Context[ServerSession, None]) -> str:
164164 await ctx .report_progress (progress = 100 , total = 100 , message = "Completed step 100 of 100" )
165165
166166 # Return progress token as string
167- progress_token = ctx .request_context .meta .progressToken if ctx .request_context and ctx .request_context .meta else 0
167+ progress_token = ctx .request_context .meta .progress_token if ctx .request_context and ctx .request_context .meta else 0
168168 return str (progress_token )
169169
170170
@@ -373,7 +373,7 @@ def test_prompt_with_embedded_resource(resourceUri: str) -> list[UserMessage]:
373373 type = "resource" ,
374374 resource = TextResourceContents (
375375 uri = resourceUri ,
376- mimeType = "text/plain" ,
376+ mime_type = "text/plain" ,
377377 text = "Embedded resource content for testing." ,
378378 ),
379379 ),
@@ -386,7 +386,7 @@ def test_prompt_with_embedded_resource(resourceUri: str) -> list[UserMessage]:
386386def test_prompt_with_image () -> list [UserMessage ]:
387387 """A prompt that includes image content"""
388388 return [
389- UserMessage (role = "user" , content = ImageContent (type = "image" , data = TEST_IMAGE_BASE64 , mimeType = "image/png" )),
389+ UserMessage (role = "user" , content = ImageContent (type = "image" , data = TEST_IMAGE_BASE64 , mime_type = "image/png" )),
390390 UserMessage (role = "user" , content = TextContent (type = "text" , text = "Please analyze the image above." )),
391391 ]
392392
@@ -427,7 +427,7 @@ async def _handle_completion(
427427 """Handle completion requests"""
428428 # Basic completion support - returns empty array for conformance
429429 # Real implementations would provide contextual suggestions
430- return Completion (values = [], total = 0 , hasMore = False )
430+ return Completion (values = [], total = 0 , has_more = False )
431431
432432
433433# CLI
0 commit comments