Skip to content

Preserve MCP server session isolation - #13

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-4085
Draft

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-4085

Conversation

@cursor

@cursor cursor Bot commented Aug 1, 2026

Copy link
Copy Markdown

Summary

  • propagate the server-level --session value to MCP-spawned CLI subprocesses
  • preserve typed per-tool session overrides
  • add regression coverage and document the server default behavior

Impact

Previously, agent-browser --session project-a mcp silently ran tool calls without a typed session in the global default session. Multiple MCP servers could therefore share cookies, storage, and restore state despite being launched with distinct session names.

Validation

  • targeted MCP session regression test
  • full Rust test suite: 897 unit tests and 2 integration tests passed
  • cargo fmt -- --check
  • cargo clippy (passes with three existing warnings in untouched files)
  • end-to-end MCP stdio smoke checks for inherited defaults and per-tool overrides
Open in Web View Automation 

Co-authored-by: seanmcd15 <seanmcd15@gmail.com>
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