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
💡 Likely answer: A maintainer (gpeal, contributor) responded on this thread — see the highlighted reply below.

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 ↗

3 Comments

gpeal contributor · 10 months ago

Try naming it salesforce_dx

brandonpaldom · 10 months ago
Try naming it salesforce_dx

I've tried, but it doesn't work.

<img width="1924" height="1104" alt="Image" src="https://github.com/user-attachments/assets/b12d2499-b9bb-4c96-a616-bdf1de897a80" />

gpeal contributor · 10 months ago

Increase your startup timeout. The error will make it more clear how to fix this in 0.49
https://github.com/openai/codex/blob/main/docs/config.md#other-configuration-options