Use this file to discover all available pages before exploring further.
New in version 2.0.0Use this when you need to capture or process log messages sent by the server.MCP servers can emit log messages to clients. The client handles these through a log handler callback.
If you do not provide a custom log_handler, FastMCP’s default handler routes server logs to Python’s logging system at the appropriate severity level. The MCP levels map as follows: notice becomes INFO; alert and emergency become CRITICAL.
client = Client("my_mcp_server.py")async with client: # Server logs are forwarded at proper severity automatically await client.call_tool("some_tool")