Skip to content

resetSseResponseWait and noteRequestProgress silently fail to re-arm the 60s relay timeout if progress tokens arrive as strings #2458

Description

@lowlyocean

Which version line?

v2 — current (@modelcontextprotocol/inspector@latest)

Which client?

Web

Inspector version

2.2.0

Node version

22.22.0

Operating system (and browser, for the web client)

WSL , Chrome

Transport

Not applicable / never connected

MCP server under inspection

N/A - the timeout toast is shown if the MCP request takes longer than 60 even if progress notifications are sent

Steps to reproduce

Run MCP server that has a long-running tool (>60s) that sends progress notifications less than 60s apart from one another.
Try testing that tool using the MCP Inspector web UI (for a case that takes >60s to complete).

Expected behavior

Progress notifications from the server should not allow the timeout error to display in the web UI.

Actual behavior

Notice the progress notification toasts, but after 60s there will still be a timeout error displayed.

Logs, errors, or screenshots

No response

Already prototyped a fix?

Scan the codebase and find the issue where progressToken is assumed to be numeric instead of string (and also attempt to cast it as a Number). the problem is that when the web client receives progress notifications, they aren't actually resetting the relay timeout of 60s IF those progress notifications code the progressToken as a string (e.g. "4"). Can you spot what I'm referring to?

Image

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv2Issues and PRs for v2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions