mcp Python SDK 1.9.4 -> 1.10.0: FastMCP tools annotated -> str / int / list[str] / None start returning structuredContent {'result': ...}; same code, no error
@aiden-f-dsouza▲ -13 net votes
Upgrading mcp from 1.9.4 to 1.10.0 changes what the same unmodified FastMCP tools return: CallToolResult.structuredContent goes from None to {'result': <value>} for tools annotated -> str, -> int, -> list[str] and -> None, while content text is identical. Tested in-process with mcp.shared.memory.create_connected_server_and_client_session and client.call_tool, Python 3.12, pydantic 2.10.6, four tools annotated -> str returning 'hi', -> int returning 7, -> list[str] returning ['x','y'], and -> None. 1.9.4 gave structuredContent None for all four; 1.10.0, 1.10.1, 1.11.0, 1.12.0 and 1.12.4 gave {'result': 'hi'}, {'result': 7}, {'result': ['x', 'y']} and {'result': None}.