mcpproxy-go
mcpproxy-go copied to clipboard
[Feature]: Forward upstream progress notifications to the client
Problem / motivation
The client's progressToken reaches the upstream, but the upstream's notifications/progress are dropped (connection_lifecycle.go#L261). Clients get no progress on long-running tools.
Proposed solution
Forward notifications/progress to the client session that owns the matching progressToken.
Alternatives considered
None. Clients have no other way to get progress.
Which edition?
Personal
Pre-submission checklist
- [x] I searched existing issues and discussions for a similar request
Thanks for the report, @felipecrs. As of #2067, mcpproxy forwards an upstream's notifications/progress to the client that made the call. It will ship in the next release.
- It works on
call_tool_read|write|destructive, the directserver__tooltools and/mcp/s/<server>. - The client gets progress only if it sent a
progressTokenwith the call. Each upstream call gets its own proxy-made token, so your token never reaches the upstream, and progress goes only to the session that made the call. progressis forwarded, andtotalwhen the upstream sends one. Themessagegoes through the same output-sanitisation policy as the tool's result text and is cut to 512 bytes.- At most one update per call is forwarded every 100 ms. The first update that reaches
totalalways goes through. - Not covered yet: tool calls made from inside
code_execution, andprompts/get/resources/read.
Docs: Progress notifications.