Skip to content

Commit 36b4521

Browse files
Update tests/server/mcpserver/test_server.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a27251e commit 36b4521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/server/mcpserver/test_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,9 +1072,9 @@ async def logging_tool(msg: str, ctx: Context) -> str:
10721072
@pytest.mark.anyio
10731073
async def test_context_logging_with_structured_data(self):
10741074
"""Test that context logging accepts structured data per MCP spec (issue #397)."""
1075-
mcp = FastMCP()
1075+
mcp = MCPServer()
10761076

1077-
async def structured_logging_tool(msg: str, ctx: Context[ServerSession, None]) -> str:
1077+
async def structured_logging_tool(msg: str, ctx: Context) -> str:
10781078
# Test with dictionary
10791079
await ctx.info({"status": "success", "message": msg, "count": 42})
10801080
# Test with list

0 commit comments

Comments
 (0)