Commit 5997a11
committed
feat(gateway): remember workspace pins per mcp-remote process
Cursor leaves ${workspaceFolder} unsubstituted on many mcp-remote spawns,
so a session arrives with an empty header and no way to resolve a route.
A manual mcpmux_set_workspace_root fixed only that one session, so every
Reload MCP cost another call.
Pins now promote to a window keyed on the owning process, letting later
sessions from the same mcp-remote inherit the claim. Inheritance is
re-validated against that session's own open folder set, and pins for
dead processes are evicted on read.
Pin logs name their source so a trace can tell a working header from a
manual recovery, and window-pin writes log once per claim instead of once
per request. The bridge snippet and probe recipe inline the access key,
dropping a second substitution that could silently expand to empty.
Signed-off-by: crimsonsunset <jsangio1@gmail.com>1 parent 934b0f2 commit 5997a11
17 files changed
Lines changed: 1136 additions & 79 deletions
File tree
- apps/desktop/src
- features/clients
- locales/en
- crates/mcpmux-gateway
- src
- mcp
- services
- meta_tools
- docs
- manual
- planning
- scripts
- tests
- rust/tests/integration
- ts/features
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
4 | 30 | | |
5 | 31 | | |
6 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
7 | 36 | | |
8 | 37 | | |
9 | 38 | | |
| |||
12 | 41 | | |
13 | 42 | | |
14 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
15 | 52 | | |
16 | 53 | | |
17 | | - | |
| 54 | + | |
18 | 55 | | |
19 | 56 | | |
20 | 57 | | |
| |||
29 | 66 | | |
30 | 67 | | |
31 | 68 | | |
32 | | - | |
| 69 | + | |
33 | 70 | | |
34 | | - | |
35 | 71 | | |
36 | 72 | | |
37 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
0 commit comments