Skip to content

Set longer request times for Inspector client #142

Closed
@luiztauffer

Description

@luiztauffer

Describe the bug
I get Error: Request timed out whenever I send requests to tools that take a little bit longer to process.

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions