# codex-multi-profile MCP server

> Isolate agent environments, audit MCP configurations for security leaks, and synchronize engineering instructions between Claude Code and OpenAI Codex.

- Repository: https://github.com/Hung2124/codex-multi-profile
- Page: https://hostedmcp.org/servers/hung2124/codex-multi-profile
- Transport: stdio
- Stars: 94
- License: MIT

## Install

### Claude Code

```sh
claude mcp add codex-multi-profile -- npx -y codex-multi-profile
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "codex-multi-profile": {
      "command": "npx",
      "args": [
        "-y",
        "codex-multi-profile"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "codex-multi-profile": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codex-multi-profile"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"codex-multi-profile","type":"stdio","command":"npx","args":["-y","codex-multi-profile"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "codex-multi-profile": {
      "command": "npx",
      "args": [
        "-y",
        "codex-multi-profile"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add codex-multi-profile -- npx -y codex-multi-profile
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.codex-multi-profile]
command = "npx"
args = ["-y", "codex-multi-profile"]
```

### Gemini CLI

```sh
gemini mcp add -s user codex-multi-profile npx -- -y codex-multi-profile
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "codex-multi-profile": {
      "command": "npx",
      "args": [
        "-y",
        "codex-multi-profile"
      ]
    }
  }
}
```

## FAQ

### How can I audit my MCP configuration for security risks?

You can use the mcp-audit command to statically audit .mcp.json and claude_desktop_config.json for hardcoded credentials and unsafe shell wrappers.

### Does this tool synchronize instructions between different AI agents?

Yes, the Instruction Bridge synchronizes shared engineering rules between CLAUDE.md for Claude Code and AGENTS.md for OpenAI Codex.

### Is my data safe when using the workspace profiles?

Yes, saved workspace profiles stay on your local disk and nothing is transmitted externally; the UI only receives masked emails.

### How fast can I switch workspaces on Windows?

The Windows Store Codex Workspace Switcher allows you to hot-switch authorized workspaces in 2–3 seconds.
