We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a27251e commit 36b4521Copy full SHA for 36b4521
tests/server/mcpserver/test_server.py
@@ -1072,9 +1072,9 @@ async def logging_tool(msg: str, ctx: Context) -> str:
1072
@pytest.mark.anyio
1073
async def test_context_logging_with_structured_data(self):
1074
"""Test that context logging accepts structured data per MCP spec (issue #397)."""
1075
- mcp = FastMCP()
+ mcp = MCPServer()
1076
1077
- async def structured_logging_tool(msg: str, ctx: Context[ServerSession, None]) -> str:
+ async def structured_logging_tool(msg: str, ctx: Context) -> str:
1078
# Test with dictionary
1079
await ctx.info({"status": "success", "message": msg, "count": 42})
1080
# Test with list
0 commit comments