Skip to content

Inspector times out when FastMCP tool emits ctx.info/ctx.report_progress (v2.2.0, LEGACY/STDIO) #2028

Description

@Avi-Jadhav03

Which version line?

v2 — current (@modelcontextprotocol/inspector@latest)

Which client?

Web

Inspector version

2.2.0

Node version

v26.5.0

Operating system (and browser, for the web client)

MacOS 26.5.2

Transport

stdio

MCP server under inspection

Server: FastMCP local Python server (server.py)

Command used:
fastmcp dev inspector server.py

Transport: stdio
Protocol era: legacy
OAuth: no

Note: Same server/code works via Claude Desktop; timeout is observed via Inspector path.

Steps to reproduce

  1. Fresh launch Inspector using fastmcp dev inspector server.py.
  2. Connect to the local server over stdio.
  3. Open the Tools tab.
  4. Run slow_task (example input: steps=5) where the tool calls ctx.report_progress(...) and ctx.info(...) in a loop.
  5. Observe progress/log lines appear during execution.
  6. Final result does not return; Inspector shows Tool Error: Request timed out.

Expected behavior

Tool should complete and return its final result in Inspector UI, while still allowing mid-execution context notifications (ctx.report_progress(...) / ctx.info(...)).

Actual behavior

When ctx.report_progress() or ctx.info() is invoked, Inspector eventually shows Tool Error: Request timed out, even though server-side execution appears to finish successfully.

If Context is injected but unused (or no Context calls are made), the tool returns normally.

Logs, errors, or screenshots

Error shown in Inspector UI:
Tool Error: Request timed out

Environment:

  • Inspector version: 2.2.0
  • Node.js: v26.5.0
  • OS: macOS 26.5.2
  • Transport: stdio
  • Era: legacy

I can provide additional Protocol/Network logs if maintainers want specific traces.

Already prototyped a fix?

No fix prototyped yet.

Before you submit

  • I searched existing issues and this is not a duplicate.
  • This is not a security vulnerability report (those go through the private advisory process).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions