MCP client failed to start: invalid server name with space (Salesforce DX)

Resolved 💬 3 comments Opened Oct 24, 2025 by brandonpaldom Closed Oct 24, 2025

What version of Codex is running?

codex-cli 0.47.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

gpt-5-high

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

When starting the MCP server with Codex CLI, I get the following error:

MCP client for 'Salesforce DX' failed to start: invalid server name 'Salesforce DX': must match pattern ^[a-zA-Z0-9_-]+$

My config:

model = "gpt-5"
model_reasoning_effort = "high"
[mcp_servers."Salesforce DX"]
command = "npx"
args = [
  "-y", "@salesforce/mcp@latest",
  "--orgs", "DEFAULT_TARGET_ORG",
  "--toolsets", "orgs,metadata,data,users",
  "--tools", "run_apex_test",
  "--allow-non-ga-tolos"
]

Codex CLI: 0.47.0
MCP package: @salesforce/mcp
macOS Sequoia 15.7.1
Node/npm versión: v24.10.0

What steps can reproduce the bug?

cd ~/Development/dx-project
codex

What is the expected behavior?

<img width="1924" height="1104" alt="Image" src="https://github.com/user-attachments/assets/1381bfa8-f212-4aa2-b051-ae7a5eb3fb0b" />

Additional information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗