Closed
Description
Describe the bug
I get Error: Request timed out
whenever I send requests to tools that take a little bit longer to process.
To Reproduce
Just use any MCP tool that takes a longer time to finish, e.g.
from time import sleep
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("myserver", version="0.1.0", request_timeout=300)
@mcp.tool()
def return_string(query: str) -> str:
sleep(10)
return f"Query: {query}"
then run it with:
mcp dev main.py
Expected behavior
I would expect the client to wait for the response up to a limit, but I don't know how to set that limit in the Inspector.