Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Use the snake_case field name in the task return-type test (#4657)

Jeremiah Lowin6c4ba6b42084
diff --git a/tests/tasks/server/test_task_return_types.py b/tests/tasks/server/test_task_return_types.py
index e1a3106c6..eb65fabd9 100644
--- a/tests/tasks/server/test_task_return_types.py
+++ b/tests/tasks/server/test_task_return_types.py
@@ -50,7 +50,7 @@ def _sync_result_to_wire(result: ToolResult) -> dict[str, Any]:
content, structured_content = mcp_result
call_tool_result = mcp_types.CallToolResult(
content=content,
- structuredContent=structured_content,
+ structured_content=structured_content,
)
else:
call_tool_result = mcp_types.CallToolResult(content=mcp_result)