Install AI Tools

B2C Commerce tools, documentation, and skills for your assistant.

Claude

Install the plugin Recommended

bash
claude plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling
claude plugin install b2c-dx-mcp@b2c-developer-tooling --scope project

Start a new Claude Code session in your project. Use --scope user instead for all projects.

Manual MCP setup

From your project directory:

bash
claude mcp add --transport stdio --scope project b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest

Start a new session. Use --scope user instead for all projects. See Claude Code MCP setup.

Claude Desktop setup

Codex

Install the plugin Recommended

bash
codex plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling
codex plugin add b2c-dx-mcp@b2c-developer-tooling

Start a new Codex session in your project. This setup also works with the Codex IDE extension and the ChatGPT Work desktop app.

Manual MCP setup
bash
codex mcp add b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest

Or add this to ~/.codex/config.toml (or $CODEX_HOME/config.toml if customized):

toml
[mcp_servers.b2c-dx-mcp]
command = "npx"
args = ["-y", "@salesforce/b2c-dx-mcp@latest"]

Start a new session. See Codex MCP configuration.

ChatGPT online setup

VS Code

Install the plugin Recommended

  1. Open the Command Palette (Cmd/Ctrl+Shift+P) and run Chat: Install Plugin from Source.
  2. Enter SalesforceCommerceCloud/b2c-developer-tooling.
  3. Select b2c-dx-mcp and follow the installation prompts.
  4. Start a new chat in GitHub Copilot.
Manual MCP setup

Add this to .vscode/mcp.json in your workspace:

json
{
  "servers": {
    "b2c-dx-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@salesforce/b2c-dx-mcp@latest"]
    }
  }
}

See VS Code MCP setup.

Copilot CLI setup

Cursor

Reload the MCP server in Cursor after installation.

Manual MCP setup

Add this to .cursor/mcp.json in your project:

json
{
  "mcpServers": {
    "b2c-dx-mcp": {
      "command": "npx",
      "args": ["-y", "@salesforce/b2c-dx-mcp@latest"]
    }
  }
}

For all projects, use ~/.cursor/mcp.json instead.

See Cursor's MCP documentation.

OpenCode

Add this to opencode.json in your project:

json
{
  "mcp": {
    "b2c-dx-mcp": {
      "type": "local",
      "command": ["npx", "-y", "@salesforce/b2c-dx-mcp@latest"],
      "enabled": true
    }
  }
}

Restart OpenCode. For all projects, use ~/.config/opencode/opencode.json. See OpenCode MCP setup.

Gemini

From your project directory, run:

bash
gemini mcp add --scope project b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest

Start a new Gemini CLI session. Use --scope user instead for all projects. See Gemini CLI MCP setup.

No separate skills plugins needed.

Other clients and manual setup →
Skip to content
View as Markdown

Agentic B2C Developer Toolkit

Salesforce B2C Commerce tools for developers, administrators, and AI agents.

Build storefronts, deploy code, investigate issues, and manage your sites from your terminal, editor, or AI assistant.

B2C CLI listing code versions and checking the registration status of Custom APIs.

Tools

CLI Deploy cartridges, run jobs, manage sandboxes, and automate your B2C Commerce workflows.

IDE Extension Sync code, explore your instance, and debug server-side scripts in your editor.

MCP / Agent Skills Connect your assistant to B2C Commerce documentation, live tools, nearly 600 API operations, and workflow skills.

Developer Tasks

Find the cause of a storefront bug

Let your assistant inspect live cartridge execution and connect what it finds to your source code.

Example prompt

This controller returns the wrong result in my sandbox. Inspect the variables while I reproduce the request, explain the cause, and recommend a fix. Don't change the code yet.

Debug with your assistant · Explore the MCP

Claude Code using the B2C MCP debugger to investigate why a loyalty controller returns before calling its service, with breakpoints in loyalty.js.

Search Salesforce documentation Get answers grounded in B2C Commerce documentation, with examples and links to the sources.

Deploy code and metadata Apply project configuration and metadata changes with import sets.

CI/CD with GitHub Actions Automate builds, deployments, and other repeatable B2C Commerce tasks.

Administrator and Merchant Tasks

Investigate failed orders

Use the MCP and operations skills to connect failed orders with payment errors and job updates. Understand the impact and prepare evidence for the team that can help.

Example prompt

Investigate failed orders on my site over the last two hours. Look for patterns in affected products and payment errors, and prepare a handoff with the evidence. Don't change orders or retry payments.

Explore operations workflows

ChatGPT investigating order failures, identifying affected products and payment rejections, and correlating them with a tax-class import failure.

Manage users and API clients Review users, roles, organizations, and API access in Account Manager.

Review campaigns and promotions Check campaign schedules and identify promotions that need attention before launch.

Explore analytics reports Query B2C Commerce data and turn operational reports into useful answers.

More Resources

Search B2C Commerce documentation Ask your assistant about APIs, Business Manager, or merchandising, with references to Salesforce documentation.

CLI Extensions Add integrations and commands to fit your team's workflow.

Tooling SDK Build custom integrations and automation with typed TypeScript APIs.