Skip to content

fix(cli): emit warning when --mount-rw is used in MCP mode#1237

Merged
chaliy merged 1 commit intomainfrom
fix/1165-mount-rw-mcp-warning
Apr 12, 2026
Merged

fix(cli): emit warning when --mount-rw is used in MCP mode#1237
chaliy merged 1 commit intomainfrom
fix/1165-mount-rw-mcp-warning

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 12, 2026

Summary\n\n- Emit a loud stderr warning when --mount-rw is combined with mcp subcommand, since LLM agents would get read-write host filesystem access\n- Add TM-ESC-030 to threat model for mount-rw + MCP combination\n- Add tests verifying warning triggers for rw mounts in MCP mode and not for ro mounts\n\n## Test plan\n\n- [x] mount_rw_mcp_mode_emits_warning — verifies configure_bash succeeds with warning path\n- [x] mount_ro_mcp_mode_no_warning — verifies ro mounts in MCP mode don't trigger warning\n- [x] cargo clippy and cargo fmt clean\n\nCloses #1165

LLM agents in MCP mode should not silently get read-write access to
host filesystem. Emit a loud stderr warning recommending --mount-ro.

Closes #1165
@chaliy chaliy merged commit 0956bab into main Apr 12, 2026
11 checks passed
@chaliy chaliy deleted the fix/1165-mount-rw-mcp-warning branch April 12, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant