Skip to content

fix(provider): copy MCP and prompts into isolated Codex home - #90

Merged
cursor[bot] merged 2 commits into
devfrom
cursor/isolated-home-mcp-a72a
Aug 28, 2026
Merged

cursor[bot] merged 2 commits into
devfrom
cursor/isolated-home-mcp-a72a

Conversation

@xjoker

@xjoker xjoker commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

Provider launch points Codex at $CODEX_SWITCH_HOME/providers/<alias>/codex-home. That tree was empty, so /mcp showed “No MCP servers configured” and custom prompts/skills disappeared. The originals in ~/.codex were never deleted.

Each launch now copies from the user’s $CODEX_HOME:

  • config.toml keys: mcp_servers, developer_instructions, skills
  • files/dirs: AGENTS.md, prompts/, skills/

auth.json is not copied. The user home is not written. Leftover isolated keys (for example a previous model) stay.

Test plan

  • cargo test --lib isolated_codex_home
  • cargo test --all
  • cargo clippy --all-targets -- -D warnings
  • After self-update --dev: codex-switch launch <provider> then /mcp should list the same servers as a normal codex session
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 28, 2026 07:51
Provider launch points Codex at an empty CODEX_HOME under
providers/<alias>/codex-home, so /mcp and custom prompts disappeared
even though ~/.codex was never deleted. Overlay mcp_servers,
developer_instructions, and skills from the user config, and copy
AGENTS.md, prompts/, and skills/ on each launch. Leave auth.json
and the user home untouched.

Co-authored-by: lolitaupdate <[email protected]>
Today's third candidate: copy user MCP and prompts into the provider
isolated Codex home.

Co-authored-by: lolitaupdate <[email protected]>
@cursor
cursor Bot merged commit 141c9b1 into dev Aug 28, 2026
4 checks passed
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.

2 participants