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

Start a new Claude Code session. To install for the current project only, run it from your project directory with --scope project.

Manual MCP setup
bash
claude mcp add --transport stdio --scope user b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest

Start a new session. To configure the current project only, run it from your project directory with --scope project. 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

Run:

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

Start a new Gemini CLI session. To configure the current project only, run it from your project directory with --scope project. See Gemini CLI MCP setup.

No separate skills plugins needed.

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

MCP Tools ​

Use B2C Commerce documentation, deployment, debugging, and API tools from your assistant. The plugin installation includes all toolsets; connected capabilities use your existing B2C configuration.

These tables list tool names for reference and for your client's tool controls. Optional toolset customization is covered at the end of this page.

Documentation and skills ​

Toolsets: All

Find answers across Salesforce B2C Commerce references and guides from your assistant.

Look up Script API behavior, storefront patterns, API setup, standard job steps, and XML import/export formats. Salesforce Help adds Business Manager guidance for administrators and merchants: jobs, replication, access, catalogs, pricing, promotions, search, and content. Ask for an explanation applied to your task and links to the source documentation.

No B2C Commerce credentials required.

ToolCapability
skills_readFind development, operations, CLI, Storefront Next, and MCP workflow skills.
docs_searchFind platform references, guides, Salesforce Help, and tooling docs.
docs_readRead a documentation article.
docs_listBrowse documentation categories and titles.
docs_schema_searchFind XML import/export schemas.
docs_schema_readRead an XML schema.
docs_schema_listList available XML schemas.

The included skill collections complement documentation with development patterns and operational workflows. No separate skills installation is needed. Skills are also served as MCP resources (skill:// URIs), and assistants that support the MCP Skills extension list the server's MCP workflow skills (b2c-mcp-server, b2c-mcp-config, b2c-mcp-scapi, b2c-mcp-cip, b2c-mcp-debugger) alongside their own skills.

Example prompt

Check this catalog import XML for errors and tell me which existing product data it would replace.

Documentation search is also available through the B2C CLI. See documentation topic settings to customize coverage.

SCAPI Development ​

Toolsets: SCAPI, PWAV3, STOREFRONTNEXT

Requires OAuth, the instance short code, and tenant ID. See authentication and scopes.

ToolCapabilityOAuth scope
scapi_schemas_listBrowse and read standard and custom API schemas.sfcc.scapi-schemas
scapi_custom_apis_get_statusCheck custom endpoint registration.sfcc.custom-apis

SCAPI Code Mode ​

Toolsets: SCAPI, PWAV3, STOREFRONTNEXT

Explore nearly 600 Salesforce Commerce API operations and work with your instance's data.

Explore products, catalogs, orders, customers, inventory, pricing, and more. SCAPI code mode lets your assistant work across APIs in a single task: create a product and assign it to a category, review a campaign's promotions, or investigate failed jobs. Describe the outcome you want in your own words; you do not need to write code or choose API calls.

ToolCapability
scapi_searchFind Admin and Shopper API operations by task, and their requirements.
scapi_executeRead and manage B2C Commerce data through standard and custom Admin APIs.
scapi_snippet_saveSave a workflow for reuse across sessions.

The standard API reference works offline without credentials. Ask your assistant to search your instance's live schemas to include your custom attributes, custom APIs, and APIs released after your installed version; this uses the Schemas API (sfcc.scapi-schemas scope), and the assistant can then call what it found. Working with your instance's data requires OAuth credentials and scopes for the requested operations.

Review changes before they happen. With Safety Mode, you can let your assistant inspect data while asking for approval before selected changes. For example, review a new product before it is created, then approve its category assignment separately. Your assistant app must support these approval prompts; otherwise, the change is blocked. Declining stops the task without undoing earlier changes. Set up product approvals.

Custom attributes and custom Admin APIs are supported. Discovering your instance's custom definitions requires the sfcc.scapi-schemas scope; custom APIs also require their declared scopes. See code mode access.

Shopper APIs run as a guest shopper using your SLAS client (slasClientId, and slasClientSecret for private clients) and site. A Storefront Next project's .env provides these. The guest session lasts for the MCP server session, so a basket created in one request is available to later ones.

Current limits: Code mode does not yet run registered-shopper-only operations, trusted-system or trusted-agent on-behalf operations, or upload and download binary files.

Example prompt

Create a test product in my catalog and keep it offline while I finish setting it up.

Ready-to-use workflows cover product creation and category assignment, campaign reviews, job history and step inspection, code-version checks, and site cartridge path checks. Products created with the built-in workflow start offline unless you request otherwise.

ChatGPT creating an offline test product after checking its ID is unused, then verifying the saved product and its storefront catalog category assignment.

Example prompt

Which jobs failed this week, and what needs attention?

Example prompt

Summarize the promotions attached to this campaign, including enabled status and schedules.

Ask your assistant to save a useful workflow so you can repeat it for other products, campaigns, or dates. Saved workflows remain available across sessions and use the credentials and safety settings of the project where you run them.

Logs ​

Logs may contain sensitive data; see data handling.

Instance logs ​

Toolsets: CARTRIDGES, DIAGNOSTICS, SCAPI

ToolCapability
logs_list_filesBrowse instance log files.
logs_get_recentRead and filter recent instance logs.
logs_watchStart, list, or stop instance log watches.
logs_watch_pollRetrieve entries from an instance log watch.

Instance logs require WebDAV log-read access.

Example prompt

Watch my sandbox logs while I reproduce this checkout error and help me find the cause.

Managed Runtime logs ​

Toolsets: DIAGNOSTICS, PWAV3, STOREFRONTNEXT

ToolCapability
mrt_logs_watchStart, list, or stop live MRT log streams.
mrt_logs_watch_pollRetrieve entries from an MRT log stream.

MRT logs require an API key, project, and environment; historical MRT logs are not available.

Debugging ​

Toolsets: CARTRIDGES, DIAGNOSTICS, SCAPI

Let your assistant investigate what happens inside a running cartridge. It can pause at a breakpoint, inspect the call stack and variable values, and step through controllers, hooks, jobs, and custom API code to explain unexpected behavior.

Requires a Business Manager user or access key with WebDAV_Manage_Customization; OAuth is unsupported.

ToolCapability
debug_start_sessionConnect the debugger and map local cartridge sources.
debug_end_sessionDisconnect and release the debugger slot.
debug_list_sessionsFind active sessions, breakpoints, and paused threads.
debug_set_breakpointsSet or clear breakpoints.
debug_wait_for_stopWait for execution to pause.
debug_controlContinue execution or step into, over, or out of a function.
debug_inspectInspect stacks, frame variables, and object members.
debug_evaluateEvaluate JavaScript in a paused frame.
debug_capture_at_breakpointCapture debugger state at a selected line.

Breakpoints pause requests; evaluation can change application state. Use a sandbox and end sessions when finished. See debugger access.

Example prompt

This controller returns the wrong price in my sandbox. Help me find out why while I reproduce the issue.

See debugging with an assistant or IDE.

Deployment ​

Cartridge deployment ​

Toolsets: CARTRIDGES

ToolCapability
cartridge_deployUpload cartridges or selected files to a code version; optionally activate/reload it.

Cartridges require WebDAV write access. Code-version discovery and reload use SCAPI (sfcc.scripts / sfcc.scripts.rw) with OCAPI compatibility where available. Check deployment permissions before connecting.

Managed Runtime ​

Toolsets: MRT, PWAV3, STOREFRONTNEXT

ToolCapability
mrt_bundle_pushPublish a pre-built storefront bundle; optionally deploy it.

Bundle publishing requires an MRT API key and project, plus an environment when deploying.

Instance files ​

Toolsets: CARTRIDGES, SCAPI, DIAGNOSTICS (browse and download only)

Browse instance directories, read exact job logs, and upload or download files without installing the CLI separately. Upload text directly or transfer files from the machine running the MCP server.

ToolCapability
webdav_listList a directory with file sizes and modification dates.
webdav_getRead part of a text file or download a whole file.
webdav_putUpload text or a local file; replace existing files only when requested.

Requires WebDAV access to the selected directory. Whole-file transfers are limited to 64 MiB. Upload folders must already exist; local downloads require a new filename. Selected cartridge uploads support up to 100 files / 64 MiB total. See file access.

Example prompt

Download the log for this failed import and help me find what went wrong.

Analytics reports ​

Toolsets: CIP

Turn B2C Commerce analytics into answers for your site.

Compare sales and average order value, find searches with no results, review promotions and payment methods, or identify slow and failing APIs. CIP/CCAC reports give your assistant a starting point; custom analysis supports questions that go beyond them. No separate CLI or SQL client is needed.

Example prompt

Which SCAPI endpoints had the highest 5xx error rates last week? Include request volume so I can distinguish recurring problems from isolated failures.

ToolCapability
cip_discoverFind reports, inspect their inputs and SQL, or browse available tables and columns.
cip_queryRun sales, merchandising, and technical reports or custom SQL analyses.

Requires Account Manager client credentials and the Salesforce Commerce API role for the selected tenant. Production and non-production availability, host selection, and setup are covered in the analytics guide.

Results contain up to 500 rows and may be limited further by response size. Use CLI exports for larger local datasets. Keep queries focused on a chosen period; long-running analyses may time out. Analytics can lag storefront activity; use logs or live APIs for immediate state. See analytics access.

Observability metrics (closed beta) ​

Toolsets: SCAPI

metrics_get reads B2C Commerce metrics. Requires tenant access to the Metrics API closed beta and OAuth scope sfcc.metrics.

Configuration inspection ​

Toolsets: DIAGNOSTICS, CIP

ToolCapability
config_inspectCheck resolved configuration and targets; secrets are masked by default.

Toolsets for customization ​

ToolsetCapabilities
CARTRIDGESCartridge deployment and instance diagnostics.
DIAGNOSTICSDebugging, instance/MRT logs, and configuration inspection.
MRTManaged Runtime bundle publishing and deployment.
PWAV3Shared MRT and SCAPI tools for PWA Kit projects.
SCAPIAPI development, instance diagnostics, and optional metrics.
STOREFRONTNEXTShared MRT and SCAPI tools for Storefront Next projects.
CIPAnalytics report discovery, warehouse metadata, and SQL queries.

Skills and documentation are included in every toolset. Shared tools appear once.