Skip to content

Commit a58dd74

Browse files
authored
@W-21466612 add mcp to marketplace (#280)
1 parent 4bcd3c8 commit a58dd74

8 files changed

Lines changed: 71 additions & 44 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@salesforce/b2c-dx-docs': patch
3+
---
4+
5+
Refreshed the MCP and agent-skill documentation with clearer installation and configuration guidance, plus updated skill catalog references.

.claude-plugin/marketplace.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@
3939
"source": "./skills/b2c-experimental",
4040
"category": "productivity",
4141
"strict": false
42+
},
43+
{
44+
"name": "b2c-dx-mcp",
45+
"description": "MCP server for AI-assisted Salesforce B2C Commerce development with project-aware tooling for common workflows.",
46+
"author": {
47+
"name": "Salesforce"
48+
},
49+
"license": "Apache-2.0",
50+
"category": "productivity",
51+
"mcpServers": {
52+
"b2c-dx-mcp": {
53+
"command": "npx",
54+
"args": ["-y", "@salesforce/b2c-dx-mcp@latest", "--allow-non-ga-tools"]
55+
}
56+
}
4257
}
4358
]
4459
}

docs/guide/agent-skills.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,32 @@ description: AI agent skills and plugins for Claude Code, Cursor, and GitHub Cop
44

55
# Agent Skills & Plugins
66

7-
The B2C Developer Tooling project provides agent skills that enhance the AI-assisted development experience when working with Salesforce B2C Commerce projects.
7+
The B2C Developer Tooling project provides agent skills and plugins that enhance the AI-assisted development experience when working with Salesforce B2C Commerce projects.
88

9-
These skills follow the [Agent Skills](https://agentskills.io/home) standard and can be used with multiple agentic IDEs including [Claude Code](https://claude.ai/code), Cursor, GitHub Copilot, and VS Code.
9+
Skills plugins follow the [Agent Skills](https://agentskills.io/home) standard and can be used with multiple agentic IDEs including [Claude Code](https://claude.ai/code), Cursor, GitHub Copilot, and VS Code. The marketplace also includes an MCP server plugin (`b2c-dx-mcp`).
1010

1111
## Overview
1212

13-
When installed, the skills teach AI assistants about B2C Commerce development, CLI commands, and best practices, enabling them to help you with:
13+
When installed, the skills plugins teach AI assistants about B2C Commerce development, CLI commands, and best practices, enabling them to help you with:
1414

1515
- **CLI Operations**: Deploying cartridges, running jobs, managing sandboxes, WebDAV operations
1616
- **B2C Development**: Controllers, ISML templates, forms, localization, logging, metadata
1717
- **Web Services**: HTTP/SOAP/FTP integrations using the Service Framework
1818
- **Custom APIs**: Building SCAPI Custom APIs with contracts, implementations, and mappings
1919

20-
## Available Plugins
20+
## Available Skills Plugins
2121

2222
| Plugin | Description |
2323
|--------|-------------|
2424
| `b2c-cli` | Skills for B2C CLI commands and operations |
2525
| `b2c` | Skills for B2C Commerce development patterns |
2626

27+
## Available MCP Plugins
28+
29+
| Plugin | Description |
30+
|--------|-------------|
31+
| `b2c-dx-mcp` | MCP server for AI-assisted Salesforce B2C Commerce development with project-aware tooling for common workflows |
32+
2733
### Plugin: b2c-cli
2834

2935
Skills for using the B2C CLI to manage your B2C Commerce instances. Covers code deployment, job execution, site archive import/export, WebDAV file operations, On-Demand Sandbox management, and more.
@@ -36,6 +42,12 @@ Skills for B2C Commerce development patterns and practices. Covers controllers,
3642

3743
Browse skills: [skills/b2c/skills/](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/tree/main/skills/b2c/skills)
3844

45+
### Plugin: b2c-dx-mcp
46+
47+
Marketplace plugin for the B2C DX MCP server, providing AI-assisted B2C Commerce development workflows across supported MCP clients.
48+
49+
For setup and configuration, see the installation sections below and MCP docs: [MCP Server Overview](/mcp/) and [MCP Installation](/mcp/installation).
50+
3951
## Installation with Claude Code
4052

4153
### Prerequisites
@@ -60,12 +72,14 @@ Install the plugins at your preferred scope:
6072
# Available only in the current project
6173
claude plugin install b2c-cli --scope project
6274
claude plugin install b2c --scope project
75+
claude plugin install b2c-dx-mcp --scope project
6376
```
6477

6578
```bash [User Scope]
6679
# Available in all your projects
6780
claude plugin install b2c-cli --scope user
6881
claude plugin install b2c --scope user
82+
claude plugin install b2c-dx-mcp --scope user
6983
```
7084

7185
:::
@@ -76,7 +90,7 @@ claude plugin install b2c --scope user
7690
claude plugin list
7791
```
7892

79-
You should see `b2c-cli@b2c-developer-tooling` and `b2c@b2c-developer-tooling` in the list.
93+
You should see `b2c-cli@b2c-developer-tooling`, `b2c@b2c-developer-tooling`, and `b2c-dx-mcp@b2c-developer-tooling` in the list.
8094

8195
### Updating Plugins
8296

@@ -86,6 +100,7 @@ To get the latest plugin updates:
86100
claude plugin marketplace update
87101
claude plugin update b2c-cli@b2c-developer-tooling
88102
claude plugin update b2c@b2c-developer-tooling
103+
claude plugin update b2c-dx-mcp@b2c-developer-tooling
89104
```
90105

91106
### Uninstalling
@@ -95,6 +110,7 @@ To remove the plugins:
95110
```bash
96111
claude plugin uninstall b2c-cli@b2c-developer-tooling
97112
claude plugin uninstall b2c@b2c-developer-tooling
113+
claude plugin uninstall b2c-dx-mcp@b2c-developer-tooling
98114
```
99115

100116
To remove the marketplace:
@@ -105,7 +121,7 @@ claude plugin marketplace remove b2c-developer-tooling
105121

106122
## Installation with Skills CLI
107123

108-
The [Skills CLI](https://github.com/vercel-labs/skills) provides a universal way to install agent skills to any supported IDE.
124+
The [Skills CLI](https://github.com/vercel-labs/skills) provides a way to install agent skills to supported IDEs. Use this for the skills plugins (`b2c` and `b2c-cli`), not for the MCP server plugin (`b2c-dx-mcp`).
109125

110126
```bash
111127
# Interactive mode - select skills and IDEs

docs/guide/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ The B2C DX MCP Server enables AI assistants to help with B2C Commerce developmen
3939

4040
```bash [Project Scope (Recommended)]
4141
cd /path/to/your/project
42-
claude mcp add --transport stdio --scope project b2c-dx -- npx -y @salesforce/b2c-dx-mcp --allow-non-ga-tools
42+
claude mcp add --transport stdio --scope project b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest --allow-non-ga-tools
4343
```
4444

4545
```bash [User Scope]
46-
claude mcp add --transport stdio --scope user b2c-dx -- npx -y @salesforce/b2c-dx-mcp --allow-non-ga-tools
46+
claude mcp add --transport stdio --scope user b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest --allow-non-ga-tools
4747
```
4848

4949
:::
5050

51-
**Cursor:** [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=b2c-dx&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzYWxlc2ZvcmNlL2IyYy1keC1tY3AiLCItLXByb2plY3QtZGlyZWN0b3J5IiwiJHt3b3Jrc3BhY2VGb2xkZXJ9IiwiLS1hbGxvdy1ub24tZ2EtdG9vbHMiXX0=)
51+
**Cursor:** [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=b2c-dx-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzYWxlc2ZvcmNlL2IyYy1keC1tY3BAbGF0ZXN0IiwiLS1wcm9qZWN0LWRpcmVjdG9yeSIsIiR7d29ya3NwYWNlRm9sZGVyfSIsIi0tYWxsb3ctbm9uLWdhLXRvb2xzIl19)
5252

5353
See the [MCP Server Installation Guide](/mcp/installation) for detailed setup instructions for Claude Code, Cursor, GitHub Copilot, and other MCP clients.
5454

docs/mcp/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ See the [CLI Configuration guide](../guide/configuration#cli-flags) for complete
136136

137137
### Auto-Discovery (Default)
138138

139-
By default, the server automatically detects your project type and enables relevant toolsets. See [Project Type Detection](./installation#project-type-detection) for details.
139+
By default, the server automatically detects your project type and enables relevant toolsets. See [Project Type Detection](./#project-type-detection) for details.
140140

141141
### Manual Selection
142142

docs/mcp/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ cd /path/to/your/project
3131
claude mcp add --transport stdio --scope project b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest --allow-non-ga-tools
3232
```
3333

34+
```bash [Plugin Marketplace (Alternative)]
35+
claude plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling
36+
claude plugin install b2c-dx-mcp --scope project
37+
```
38+
3439
```bash [User Scope]
3540
claude mcp add --transport stdio --scope user b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest --allow-non-ga-tools
3641
```

docs/mcp/installation.md

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,7 @@ This guide covers installing and configuring the B2C DX MCP Server for various M
1414

1515
> **Note:** For Figma-to-component tools, you also need an external Figma MCP server enabled. See [Figma-to-Component Tools Setup](./figma-tools-setup) for details.
1616
17-
## Installation Method
18-
19-
The MCP server is installed via `npx`, which downloads and runs the latest version on demand.
20-
21-
### Project Directory
22-
23-
The server automatically detects your project location to enable:
24-
25-
1. **Auto-discovery** - Detects your project type and enables appropriate toolsets
26-
2. **Configuration loading** - Reads [`dw.json`](../guide/configuration#configuration-file) from your project root for B2C credentials
27-
3. **Scaffolding** - Creates new files in the correct location based on your project structure
28-
29-
**Detection methods:**
30-
- **Cursor (project-level)**: Automatically detected from the MCP config file location
31-
- **Cursor (user-level)**: Requires `--project-directory "${workspaceFolder}"` in the args array
32-
- **Claude Code**: Automatically detected from the current working directory (cd into project root before installation)
33-
- **GitHub Copilot**: Automatically detected from the workspace location
34-
35-
### Project Type Detection
36-
37-
The server automatically detects your project type:
38-
39-
| Project Type | Detection Criteria | Enabled Toolsets |
40-
|--------------|-------------------|------------------|
41-
| **PWA Kit v3** | `@salesforce/pwa-kit-*`, `@salesforce/retail-react-app`, or `ccExtensibility` in package.json | PWAV3, MRT, SCAPI |
42-
| **Storefront Next** | Root or workspace package has `@salesforce/storefront-next*` dependency, or package name starting with `storefront-next` | STOREFRONTNEXT, MRT, CARTRIDGES, SCAPI |
43-
| **Cartridges** | `.project` file in cartridge directory | CARTRIDGES, SCAPI |
44-
| **No project detected** | No B2C markers found | SCAPI (base toolset only) |
45-
46-
Hybrid projects (e.g., cartridges + PWA Kit) get combined toolsets.
17+
The MCP server is installed via `npx`, which downloads and runs the latest version on demand. For project directory and project type detection details, see [MCP Server Overview](./#usage).
4718

4819
## Claude Code
4920

@@ -56,6 +27,11 @@ cd /path/to/your/project
5627
claude mcp add --transport stdio --scope project b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest --allow-non-ga-tools
5728
```
5829

30+
```bash [Plugin Marketplace (Alternative)]
31+
claude plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling
32+
claude plugin install b2c-dx-mcp --scope project
33+
```
34+
5935
```bash [User Scope]
6036
claude mcp add --transport stdio --scope user b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest --allow-non-ga-tools
6137
```

skills/README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
# B2C CLI Agent Skills & Claude Code Plugins
1+
# B2C Agent Skills & Claude Code Plugins
22

3-
This directory contains agent skills and [Claude Code](https://claude.ai/code) plugins that enhance the AI-assisted development experience when working with Salesforce B2C Commerce projects.
3+
This directory contains agent skills and skills-based [Claude Code](https://claude.ai/code) plugins that enhance AI-assisted development for Salesforce B2C Commerce projects.
44

55
These skills follow the [Agent Skills](https://agentskills.io/home) format and can be used with multiple agentic IDEs including Claude Code, Cursor, GitHub Copilot, and OpenAI Codex.
66

7-
## Available Plugins
7+
## Available Skills Plugins
88

99
| Plugin | Description |
1010
|--------|-------------|
1111
| `b2c-cli` | Skills for Salesforce B2C Commerce CLI operations |
1212
| `b2c` | B2C Commerce development skills including Custom API development guides |
1313

14+
## MCP Plugin
15+
16+
`b2c-dx-mcp` is an MCP server plugin, not a skills plugin. For installation and configuration, see:
17+
18+
- [MCP Installation Guide](../docs/mcp/installation.md)
19+
- [MCP Overview](../docs/mcp/index.md)
20+
1421
## Installation
1522

1623
### 1. Add the Marketplace
@@ -23,17 +30,20 @@ claude plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling
2330

2431
### 2. Install the Plugin
2532

26-
Install the b2c-cli plugin at your preferred scope:
33+
Install the plugins at your preferred scope:
2734

2835
```bash
2936
# Install for the current project only
3037
claude plugin install b2c-cli --scope project
38+
claude plugin install b2c --scope project
3139

3240
# Install for the current user (available in all projects)
3341
claude plugin install b2c-cli --scope user
42+
claude plugin install b2c --scope user
3443

3544
# Install locally (development/testing)
3645
claude plugin install b2c-cli --scope local
46+
claude plugin install b2c --scope local
3747
```
3848

3949
### 3. Verify Installation

0 commit comments

Comments
 (0)