mcpproxy-go
mcpproxy-go copied to clipboard
[Feature]: Forward the client's roots to upstream servers
Problem / motivation
mcpproxy asks the client for its roots for its own use (workspace.go#L76), but doesn't declare roots to upstreams or answer their roots/list. Upstreams that scope work to the client's project folders (filesystem, git, code search) can't see them.
Proposed solution
Declare roots to upstreams, answer roots/list with the calling client's roots, and send notifications/roots/list_changed upstream when they change.
Alternatives considered
Configuring paths per upstream by hand. Roots are deprecated in the 2026-07-28 spec (#532), but 2025-11-25 upstreams still use them.
Which edition?
Personal
Pre-submission checklist
- [x] I searched existing issues and discussions for a similar request