You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CLI mode accepts --reset-timeout-on-progress flag but it doesn't actually reset timeouts on progress notifications because the CLI doesn't capture or handle progress notifications from MCP servers. This causes long-running operations to timeout even when progress notifications are being sent and --reset-timeout-on-progress true is specified.
The web UI correctly displays progress notifications and handles timeout resets, but the CLI mode does not yet implement this functionality.
To Reproduce
Run a long-running operation with tight timeout values:
The flags are parsed and passed to the SDK correctly
However, the CLI code in cli/src/client/connection.ts and related files doesn't set up listeners for progress notifications
This limitation means that --reset-timeout-on-progress and --max-total-timeout don't provide the full intended functionality for managing long-running operations in CLI mode
Inspector Version
Describe the bug
The CLI mode accepts
--reset-timeout-on-progressflag but it doesn't actually reset timeouts on progress notifications because the CLI doesn't capture or handle progress notifications from MCP servers. This causes long-running operations to timeout even when progress notifications are being sent and--reset-timeout-on-progress trueis specified.The web UI correctly displays progress notifications and handles timeout resets, but the CLI mode does not yet implement this functionality.
To Reproduce
node build/cli.js npx @modelcontextprotocol/server-everything --cli --method tools/call --tool-name longRunningOperation --tool-arg duration=3 steps=2 --request-timeout 2000 --reset-timeout-on-progress true--reset-timeout-on-progress trueis setExpected behavior
When
--reset-timeout-on-progress trueis set, the CLI should:Environment:
Additional context
--request-timeout,--reset-timeout-on-progress, and--max-total-timeoutflags to CLI modecli/src/client/connection.tsand related files doesn't set up listeners for progress notifications--reset-timeout-on-progressand--max-total-timeoutdon't provide the full intended functionality for managing long-running operations in CLI modeRelated Issues/PRs:
Suggested Implementation:
The CLI should implement progress notification handling similar to the web UI:
notifications/progressmessages