MCP Servers and Project Context

The Salesforce Development plugin uses Salesforce CLI and configured Model Context Protocol (MCP) tools for development tasks. A configured server can still be unavailable because of authentication, permissions, or client sandbox restrictions.

Check Your MCP Configuration 

MCP server configuration can change between plugin releases. Check the configuration shipped with your installed plugin:

  • Claude Code: .mcp.json
  • Codex: .codex-plugin/plugin.json

For the latest public configuration, see the Claude Code MCP manifest and Codex plugin manifest. Use the plugin README and changelog to check requirements and changes for your installed version.

Confirm server status and authentication in your coding client. Verify compilation, tests, and deployment with Salesforce CLI even when MCP diagnostics are available.

Project and Org Context 

In Codex, the adapter binds the session to a Salesforce DX project and one explicit org. Target selection uses:

  1. SF_TARGET_ORG or SFDX_TARGET_ORG, if set. If both are set, they must identify the same target.
  2. The project’s .sf/config.json target-org value, or the legacy .sfdx/sfdx-config.json defaultusername value. The .sf configuration takes precedence.

The adapter doesn’t use a global default org. Missing or conflicting targets prevent the bundled Codex MCP launchers from starting; correct the project configuration or environment before retrying. See Set Up a Salesforce DX Project and Development Org.

The Codex startup banner reads local project facts and the configured alias without querying the org. Ask for Salesforce status when you need live org details.

Client Access and Deployment 

Codex sandbox restrictions can prevent configured MCP servers from accessing stored Salesforce credentials. When a tool is unavailable, use Salesforce CLI or packaged references for the task. Don’t assume that a configured server has authenticated access.

Before deployment, verify the target org and review the proposed changes. Production deployment requires explicit confirmation. Unknown org types aren’t eligible for automatic deployment, and Codex post-edit automatic deployment is disabled. See the configuration reference for deployment controls.

In Codex, confirm a production deployment with the entire reply confirm production deploy to <alias>, replacing <alias> with the exact org alias. The confirmation covers one deployment in the current session and expires after ten minutes. Inline override flags don’t count as confirmation.

Use one literal deploy or delete command per shell call, from the session’s working directory. Inline context changes and opaque shell execution are denied. Verify active hooks through /hooks; hook startup failures and host timeouts are outside the adapter’s guarantee that deployment checks will block unsafe commands.

Headless 360 Setup 

The Headless 360 MCP Server (Beta) requires org activation and OAuth authentication. Follow the setup instructions for your installed plugin version and MCP client, and verify the server connection before using its tools.