Error Handling in FastMCP Servers
48%
MCP Clients vs LLMs: Who sees the error?
Programmatic MCP clients (like FastMCP's Client) do care about the isError flag. By default, call_tool() raises a ToolError exception when isError is true. You can disable that and inspect it yourself:
result = await client.call_tool(
"my_tool",
{"param": "value"},
raise_on_error=False
)Practical MCP with FastMCP & LangChain
Engineering the Agentic ExperienceEnroll now to unlock current content and receive all future updates for free. Your purchase supports the author and fuels the creation of more exciting content. Act fast, as the price will rise as the course nears completion!
