@@ -264,16 +264,16 @@ async def test_mcp_fastmcp_behavior_verification():
264264 result = await MCPUtil .invoke_mcp_tool (server , tool , ctx , "" )
265265 assert result == "[]" , f"[] should return '[]', got { result } "
266266
267- # Case 3: {} -> {"type":"text","text":"{}","annotations":null}.
267+ # Case 3: {} -> {"type":"text","text":"{}","annotations":null,"meta":null }.
268268 server ._custom_content = [TextContent (text = "{}" , type = "text" )]
269269 result = await MCPUtil .invoke_mcp_tool (server , tool , ctx , "" )
270- expected = '{"type":"text","text":"{}","annotations":null}'
270+ expected = '{"type":"text","text":"{}","annotations":null,"meta":null }'
271271 assert result == expected , f"{{}} should return { expected } , got { result } "
272272
273- # Case 4: [{}] -> {"type":"text","text":"{}","annotations":null}.
273+ # Case 4: [{}] -> {"type":"text","text":"{}","annotations":null,"meta":null }.
274274 server ._custom_content = [TextContent (text = "{}" , type = "text" )]
275275 result = await MCPUtil .invoke_mcp_tool (server , tool , ctx , "" )
276- expected = '{"type":"text","text":"{}","annotations":null}'
276+ expected = '{"type":"text","text":"{}","annotations":null,"meta":null }'
277277 assert result == expected , f"[{{}}] should return { expected } , got { result } "
278278
279279 # Case 5: [[]] -> "[]".
@@ -284,7 +284,7 @@ async def test_mcp_fastmcp_behavior_verification():
284284 # Case 6: String values work normally.
285285 server ._custom_content = [TextContent (text = "hello" , type = "text" )]
286286 result = await MCPUtil .invoke_mcp_tool (server , tool , ctx , "" )
287- expected = '{"type":"text","text":"hello","annotations":null}'
287+ expected = '{"type":"text","text":"hello","annotations":null,"meta":null }'
288288 assert result == expected , f"String should return { expected } , got { result } "
289289
290290
0 commit comments