[mcp_servers.<name>] tables in ~/.codex/config.toml. To limit a server to one project, put the table in .codex/config.toml in the project root instead; Codex reads that file only for trusted projects. See the Codex MCP documentation.
Option A: Sign in with the pipeshub CLI
This writes no token into the Codex config. It needs Node.js and@pipeshub-ai/mcp 4.7.0 or later.
pipeshub mcp install --client codex runs:
pipeshub login sign-in and refreshes it. Add --dry-run to see the command without running it, or --force to replace an existing pipeshub entry. See the pipeshub CLI reference.
The same entry written by hand in ~/.codex/config.toml:
Option B: Remote endpoint with a personal access token
Codex connects to the remote/mcp endpoint over Streamable HTTP. It sends a bearer token that it reads from an environment variable. Use a personal access token.
bearer_token_env_var is the name of the variable, not the token. Set the variable in the shell that starts Codex:
config.toml.
The tools the server offers follow the token’s scopes. See Required scopes.
Placeholders
Verify
/mcp shows the active MCP servers.
Next steps
- MCP tools: what each PipesHub tool does
- pipeshub CLI: search, ask and upload from the shell