-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usability issue for long-running tasks #223
Labels
bug
Something isn't working
Comments
I believe we need to implement support for https://spec.modelcontextprotocol.io/specification/2025-03-26/basic/utilities/progress/#progress-flow in the MCP inspector. I can take a shot at it. |
Please do. |
I was also running into this issue last week. Another vote for this! |
I am on it, should be able to open a fix today. |
Done, Give this a shot #271 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The MCP Inspector client's request timeout mechanism does not reset when a
notifications/progress
message is received for an ongoing request. This deviates from a suggested behavior in the MCP specification, potentially causing premature timeouts for long-running operations that provide progress updates.Specification Reference:
The MCP specification document
basic/lifecycle.md
under the "Timeouts" section states:Current Behavior:
In
client/src/lib/hooks/useConnection.ts
, themakeRequest
function initiates asetTimeout
when a request is sent. This timeout is only cleared when the request promise resolves or rejects (within thefinally
block). Receiving anotifications/progress
(handled separately viasetNotificationHandler
) does not interact with or reset this timeout timer.Expected Behavior:
Following the suggestion in the specification, the client could reset the request timeout timer each time a relevant
notifications/progress
is received. This would allow long-running operations that provide regular progress updates to continue without timing out prematurely, as long as progress is being reported within the timeout window. A maximum overall timeout should still be considered.The text was updated successfully, but these errors were encountered: