Closed
Description
Receiving this error when attempting to use asyncio
's Context
at all in this test tool:
@mcp.tool()
async def test(message: str, ctx: Context = None) -> str:
"""Simple echo test function."""
if ctx:
await ctx.info(f"Echo test: {message}")
return f"Echo: {message}"
I'm testing using mcp-inspector
and on fastmcp
v0.4.1. Anyone have any ideas?