Skip to content

Commit a0b4d31

Browse files
@W-20598954 MCP docs merge into existing guide
1 parent 268651c commit a0b4d31

File tree

4 files changed

+48
-48
lines changed

4 files changed

+48
-48
lines changed

docs/.vitepress/config.mts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ const guideSidebar = [
6161
text: 'MCP Server',
6262
items: [
6363
{text: 'Overview', link: '/mcp/'},
64+
{text: 'Installation', link: '/mcp/installation'},
65+
{text: 'Configuration', link: '/mcp/configuration'},
66+
{text: 'Toolsets & Tools', link: '/mcp/toolsets'},
6467
],
6568
},
6669
{
@@ -95,20 +98,8 @@ const guideSidebar = [
9598
{text: 'Logging', link: '/cli/logging'},
9699
],
97100
},
98-
];
99-
100-
const mcpSidebar = [
101-
{
102-
text: 'MCP Server',
103-
items: [
104-
{text: 'Overview', link: '/mcp/'},
105-
{text: 'Installation', link: '/mcp/installation'},
106-
{text: 'Configuration', link: '/mcp/configuration'},
107-
{text: 'Toolsets & Tools', link: '/mcp/toolsets'},
108-
],
109-
},
110101
{
111-
text: 'Tools',
102+
text: 'Tools Reference',
112103
items: [
113104
{text: 'cartridge_deploy', link: '/mcp/tools/cartridge-deploy'},
114105
{text: 'mrt_bundle_push', link: '/mcp/tools/mrt-bundle-push'},
@@ -182,7 +173,7 @@ export default defineConfig({
182173
sidebar: {
183174
'/guide/': guideSidebar,
184175
'/cli/': guideSidebar,
185-
'/mcp/': mcpSidebar,
176+
'/mcp/': guideSidebar,
186177
'/api/': [
187178
{
188179
text: 'API Reference',

docs/guide/index.md

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
---
2-
description: Introduction to the B2C CLI and SDK for Salesforce Commerce Cloud B2C code deployment, site management, and sandbox operations.
2+
description: Introduction to the B2C CLI, MCP Server, and SDK for Salesforce Commerce Cloud B2C code deployment, site management, and sandbox operations.
33
---
44

55
# Introduction
66

7-
The B2C CLI is a command-line interface for Salesforce Commerce Cloud B2C — deploy code, manage sandboxes, run jobs, and more from the terminal.
7+
The B2C Developer Tooling provides command-line and AI-assisted development tools for Salesforce Commerce Cloud B2C:
88

9-
## Quick Install
9+
- **B2C CLI** - Command-line interface to deploy code, manage sandboxes, run jobs, and more from the terminal
10+
- **MCP Server** - AI-assisted development tools for Cursor, Claude Desktop, and other AI assistants
11+
12+
## Quick CLI Install
1013

1114
::: code-group
1215

@@ -24,14 +27,47 @@ brew install SalesforceCommerceCloud/tools/b2c-cli
2427

2528
:::
2629

27-
See [Installation](./installation) for more options.
30+
See the [CLI Installation guide](./installation) for more installation options.
31+
32+
## Quick MCP Install
33+
34+
The B2C DX MCP Server enables AI assistants to help with B2C Commerce development tasks. Install it in your MCP client configuration:
35+
36+
**Cursor** (supports `${workspaceFolder}`):
37+
38+
```json
39+
{
40+
"mcpServers": {
41+
"b2c-dx": {
42+
"command": "npx",
43+
"args": ["-y", "@salesforce/b2c-dx-mcp", "--working-directory", "${workspaceFolder}", "--allow-non-ga-tools"]
44+
}
45+
}
46+
}
47+
```
48+
49+
**Claude Desktop** (use explicit path):
50+
51+
```json
52+
{
53+
"mcpServers": {
54+
"b2c-dx": {
55+
"command": "npx",
56+
"args": ["-y", "@salesforce/b2c-dx-mcp", "--working-directory", "/path/to/your/project", "--allow-non-ga-tools"]
57+
}
58+
}
59+
}
60+
```
61+
62+
See the [MCP Server Installation Guide](/mcp/installation) for detailed setup instructions.
2863

2964
## Next Steps
3065

3166
- [Authentication Setup](./authentication) - Set up Account Manager, OCAPI, and WebDAV
3267
- [Analytics Reports (CIP/CCAC)](./analytics-reports-cip-ccac) - Run curated analytics reports and SQL queries
3368
- [Configuration](./configuration) - Configure instances and credentials
3469
- [IDE Integration](./ide-integration) - Connect Prophet VS Code to B2C CLI configuration
35-
- [CLI Reference](/cli/) - Browse available commands
3670
- [MCP Server](/mcp/) - AI-assisted development with Model Context Protocol
71+
- [CLI Reference](/cli/) - Browse available commands
72+
- [Tools Reference](/mcp/toolsets) - Explore MCP tools for cartridges, MRT, SCAPI, and more
3773
- [API Reference](/api/) - Explore the SDK API

docs/mcp/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ AI assistants automatically decide which MCP tools to use based on your prompts.
112112
4. **Use natural language**: Describe what you want to achieve, not the tool name
113113
5. **Provide context**: Mention your project type, what you're building, or what you need to learn
114114
6. **Ask for guidelines first**: When starting a new project or learning a framework, ask for development guidelines before writing code
115+
7. **Combine related topics**: Ask for multiple related sections in one request (e.g., "Use the MCP tool to show me data fetching and component patterns for Storefront Next")
116+
8. **Specify operations clearly**: For deployment operations, mention the target and what to deploy (e.g., "Use the MCP tool to deploy my cartridges to the sandbox instance")
115117

116118
#### Example Prompts
117119

docs/mcp/toolsets.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -115,35 +115,6 @@ Storefront Next development tools for building modern storefronts.
115115

116116
Some tools appear in multiple toolsets (e.g., `mrt_bundle_push`, `scapi_schemas_list`, `scapi_custom_apis_status`). When using multiple toolsets, tools are automatically deduplicated, so you'll only see each tool once.
117117

118-
## Prompting Tips
119-
120-
### Start with Guidelines
121-
122-
When learning a new framework, ask for development guidelines first:
123-
124-
- ✅ "Use the MCP tool to get Storefront Next development guidelines."
125-
- ✅ "Use the MCP tool to show me PWA Kit best practices."
126-
127-
### Combine Related Topics
128-
129-
Ask for multiple related sections in one request:
130-
131-
- ✅ "Use the MCP tool to show me data fetching and component patterns for Storefront Next."
132-
133-
### Provide Project Context
134-
135-
Mention your project type for better tool selection:
136-
137-
- ✅ "I'm working on a Storefront Next project. Use the MCP tool to..."
138-
- ✅ "In my PWA Kit project, use the MCP tool to..."
139-
140-
### Specify Operations Clearly
141-
142-
For deployment operations, mention the target and what to deploy:
143-
144-
- ✅ "Use the MCP tool to deploy my cartridges to the sandbox instance."
145-
- ✅ "Use the MCP tool to push my bundle to staging."
146-
147118
## Next Steps
148119

149120
- [Configuration](./configuration) - Configure credentials and toolset selection

0 commit comments

Comments
 (0)