OpenAI Codex CLI
OpenAI Codex CLI is OpenAI's command-line coding assistant. It supports MCP servers through global configuration.
Configuration
Codex CLI uses global configuration only - there is no project-level MCP config support.
| Scope | Location | Format |
|---|---|---|
| Global | ~/.codex/config.toml | TOML |
Choose the configuration based on whether you have the Desktop App or VS Code Extension installed.
Desktop App
If you have the SF Veritas Desktop App installed:
macOS
[mcp_servers.sailfishTelemetry]
command = "node"
args = ["/Applications/SF Veritas.app/Contents/Resources/app.asar.unpacked/dist/mcp-server/index.js"]
enabled = true
Windows
[mcp_servers.sailfishTelemetry]
command = "node"
args = ["%LOCALAPPDATA%\\Programs\\SF Veritas\\resources\\app.asar.unpacked\\dist\\mcp-server\\index.js"]
enabled = true
Linux
[mcp_servers.sailfishTelemetry]
command = "node"
args = ["/opt/SF Veritas/resources/app.asar.unpacked/dist/mcp-server/index.js"]
enabled = true
VS Code Extension
If you have the SF Veritas VS Code Extension installed:
macOS / Linux
[mcp_servers.sailfishTelemetry]
command = "bash"
args = ["-c", "node \"$(ls -d ~/.vscode/extensions/sailfish-ai.sf-veritas-extension-* 2>/dev/null | sort -V | tail -1)/dist/mcp-server-bundled.js\""]
enabled = true
This command:
- Uses glob pattern to find the extension (no hardcoded version)
- Sorts by version and picks the latest if multiple exist
- Uses
bash -cto handle path expansion
Windows
[mcp_servers.sailfishTelemetry]
command = "cmd"
args = ["/c", "for /d %d in (%USERPROFILE%\\.vscode\\extensions\\sailfish-ai.sf-veritas-extension-*) do @node \"%d\\dist\\mcp-server-bundled.js\""]
enabled = true
Verification
After configuring, verify the connection:
- Open your terminal
- Run
codexto start the CLI - Type
/mcpto see connected MCP servers - You should see
sailfishTelemetrylisted
Usage
Once connected, ask Codex to use the telemetry tools:
> List my telemetry sessions
> Show me errors from the latest session
> What functions are taking the longest to execute?
> Analyze network requests to external APIs
Codex will use the MCP tools to query your local telemetry data.
Troubleshooting
Server not appearing in /mcp
- Desktop App: Verify the app is installed at the expected location
- VS Code Extension: Verify the extension is installed:
ls ~/.vscode/extensions | grep sf-veritas - Check TOML syntax - ensure quotes around string values
- Verify
enabled = trueis set - Restart Codex CLI
Config file not found
Create the config directory and file:
mkdir -p ~/.codex
touch ~/.codex/config.toml
"No telemetry data found"
- Ensure your application has been instrumented with SF Veritas SDK
- Run your application to generate telemetry data
- Check that the database exists:
ls ~/.sailfish/telemetry.db