mcpproxy-go icon indicating copy to clipboard operation
mcpproxy-go copied to clipboard

[Feature]: Forward upstream progress notifications to the client

Open felipecrs opened this issue 2 weeks ago • 1 comments

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

felipecrs avatar Nov 20 '26 22:11 felipecrs

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 direct server__tool tools and /mcp/s/<server>.
  • The client gets progress only if it sent a progressToken with 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.
  • progress is forwarded, and total when the upstream sends one. The message goes 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 total always goes through.
  • Not covered yet: tool calls made from inside code_execution, and prompts/get / resources/read.

Docs: Progress notifications.

Dumbris avatar Nov 26 '26 21:11 Dumbris