@@ -264,16 +264,16 @@ async def test_mcp_fastmcp_behavior_verification():
264
264
result = await MCPUtil .invoke_mcp_tool (server , tool , ctx , "" )
265
265
assert result == "[]" , f"[] should return '[]', got { result } "
266
266
267
- # Case 3: {} -> {"type":"text","text":"{}","annotations":null}.
267
+ # Case 3: {} -> {"type":"text","text":"{}","annotations":null,"meta":null }.
268
268
server ._custom_content = [TextContent (text = "{}" , type = "text" )]
269
269
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 }'
271
271
assert result == expected , f"{{}} should return { expected } , got { result } "
272
272
273
- # Case 4: [{}] -> {"type":"text","text":"{}","annotations":null}.
273
+ # Case 4: [{}] -> {"type":"text","text":"{}","annotations":null,"meta":null }.
274
274
server ._custom_content = [TextContent (text = "{}" , type = "text" )]
275
275
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 }'
277
277
assert result == expected , f"[{{}}] should return { expected } , got { result } "
278
278
279
279
# Case 5: [[]] -> "[]".
@@ -284,7 +284,7 @@ async def test_mcp_fastmcp_behavior_verification():
284
284
# Case 6: String values work normally.
285
285
server ._custom_content = [TextContent (text = "hello" , type = "text" )]
286
286
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 }'
288
288
assert result == expected , f"String should return { expected } , got { result } "
289
289
290
290
0 commit comments