Skip to content

fix(mcp): reroot markerless sessions through extra roots - #1269

Merged
yvgude merged 1 commit into
yvgude:mainfrom
cedric013:fix/mcp-session-reroot-extra-roots
Jul 27, 2026
Merged

fix(mcp): reroot markerless sessions through extra roots#1269
yvgude merged 1 commit into
yvgude:mainfrom
cedric013:fix/mcp-session-reroot-extra-roots

Conversation

@cedric013

Copy link
Copy Markdown
Contributor

Summary

Fixes #1258.

  • attempt markerless-session reroot after successful PathJail resolution for absolute paths
  • keep real project jail reroots behind the existing opt-in/trusted-root gate
  • add a regression test where extra_roots already allows the real workspace path

Validation

  • rustfmt --check src/tools/server_paths.rs src/tools/mod.rs
  • git diff --check

The targeted cargo test was attempted locally, but the previous local run stalled in long crate compilation. CI is the requested source of truth for the full test result.

@yvgude
yvgude merged commit 86e8663 into yvgude:main Jul 27, 2026
25 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP sessions stay rooted in markerless client cwd when extra roots allow the workspace

2 participants