@salesforce/mcp 0.23.5-dev.1 → 0.23.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +81 -10
  2. package/npm-shrinkwrap.json +1030 -1378
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -29,7 +29,7 @@ The Salesforce DX MCP Server is a specialized Model Context Protocol (MCP) imple
29
29
 
30
30
  ## Configure the DX MCP Server
31
31
 
32
- Configure the Salesforce DX MCP Server for your MCP client by updating its associated MCP JSON file; each client is slightly different, so check your MCP client documentation for details.
32
+ Configure the Salesforce DX MCP Server for your MCP client by updating its associated MCP JSON file; each client is slightly different, so check your MCP client documentation for details. See [MCP Client Configurations](./README.md#mcp-client-configurations) for more examples.
33
33
 
34
34
  Here's an example for VS Code with Copilot in which you create and update a `.vscode/mcp.json` file in your project:
35
35
 
@@ -39,14 +39,15 @@ Here's an example for VS Code with Copilot in which you create and update a `.vs
39
39
  "Salesforce DX": {
40
40
  "command": "npx",
41
41
  "args": ["-y", "@salesforce/mcp",
42
- "--orgs", "DEFAULT_TARGET_ORG",
43
- "--toolsets", "orgs,metadata,data,users",
44
- "--tools", "run_apex_test",
45
- "--allow-non-ga-tools"]
42
+ "--orgs", "DEFAULT_TARGET_ORG",
43
+ "--toolsets", "orgs,metadata,data,users",
44
+ "--tools", "run_apex_test",
45
+ "--allow-non-ga-tools"]
46
46
  }
47
47
  }
48
48
  }
49
49
  ```
50
+
50
51
  The `args` format shown in the preceding example is the same for all MCP clients; it's how you customize the DX MCP Server for your particular environment. Notes:
51
52
 
52
53
  - The `"-y", "@salesforce/mcp"` part tells `npx` to automatically install the `@salesforce/mcp` package instead of asking permission. Don't change this.
@@ -54,17 +55,87 @@ The `args` format shown in the preceding example is the same for all MCP clients
54
55
  - When writing the `args` option, surround both the flag names and their values in double quotes, and separate all flags and values with commas. Some flags are Boolean and don't take a value.
55
56
  - The preceding example shows three flags that take a string value (`--orgs`, `--toolsets`, and `--tools`) and one Boolean flag (`--allow-non-ga-tools`). This configuration starts a DX MCP Server that enables all the MCP tools in the `orgs`, `metadata`, `data`, and `users` toolsets and a specific tool called `run_apex_tests`. It also enables tools in these configured toolsets that aren't yet generally available.
56
57
 
58
+ <details>
59
+ <summary>Reference: MCP Client Configurations</summary>
60
+
61
+ ## MCP Client Configurations
62
+
63
+ Here are examples of configuring the Salesforce DX MCP Server in various MCP clients.
64
+
65
+ ### Claude Code
66
+
67
+ To configure [Claude Code](https://www.claude.com/product/claude-code) to work with Salesforce DX MCP Server, add this snippet to the `.mcp.json` file in your project:
68
+ ```
69
+ {
70
+ "mcpServers": {
71
+ "Salesforce DX": {
72
+ "command": "npx",
73
+ "args": ["-y", "@salesforce/mcp",
74
+ "--orgs", "DEFAULT_TARGET_ORG",
75
+ "--toolsets", "orgs,metadata,data,users",
76
+ "--tools", "run_apex_test",
77
+ "--allow-non-ga-tools" ]
78
+ }
79
+ }
80
+ }
81
+ ```
82
+ ### Cursor
83
+
84
+ To configure [Cursor](https://cursor.com/docs/context/mcp) to work with Salesforce DX MCP Server, add this snippet to your Cursor `mcp.json` file:
85
+
86
+ ```json
87
+ {
88
+ "mcpServers": {
89
+ "Salesforce DX": {
90
+ "command": "npx",
91
+ "args": ["-y", "@salesforce/mcp@latest",
92
+ "--orgs", "DEFAULT_TARGET_ORG",
93
+ "--toolsets", "orgs,metadata,data,users",
94
+ "--tools", "run_apex_test",
95
+ "--allow-non-ga-tools" ]
96
+ }
97
+ }
98
+ }
99
+ ```
100
+
101
+ ### Cline
102
+
103
+ To configure [Cline](https://docs.cline.bot/mcp/mcp-overview) to work with Salesforce DX MCP Server, add this snippet to your Cline `cline_mcp_settings.json` file:
104
+ ```json
105
+ {
106
+ "mcpServers": {
107
+ "Salesforce DX": {
108
+ "command": "npx",
109
+ "args": ["-y", "@salesforce/mcp@latest",
110
+ "--orgs", "DEFAULT_TARGET_ORG",
111
+ "--toolsets", "orgs,metadata,data,users",
112
+ "--tools", "run_apex_test",
113
+ "--allow-non-ga-tools" ]
114
+ }
115
+ }
116
+ }
117
+ ```
118
+
119
+ ### Other MCP Clients
120
+
121
+ For these other clients, refer to their documentation for adding MCP servers and follow the same pattern as in the preceding examples to configure the Salesforce DX MCP Server:
122
+
123
+ - [Windsurf](https://docs.windsurf.com/windsurf/cascade/mcp)
124
+ - [Zed](https://github.com/zed-industries/zed)
125
+ - [Trae](https://docs.trae.ai/ide/model-context-protocol?_lang=en)
126
+
127
+ </details>
57
128
  <details>
58
129
  <summary>Reference: Available Flags for the `args` Option</summary>
59
130
 
60
- ## Reference: Available Flags for the "args" Option
131
+ ## Available Flags for the "args" Option
61
132
 
62
133
  These are the flags that you can pass to the `args` option.
63
134
 
64
135
  | Flag Name | Description | Required? |Notes |
65
136
  | -----------------| -------| ------- | ----- |
66
- | `--orgs` | One or more orgs that you've locally authorized. | Yes | You must specify at least one org. <br/> <br/>See [Configure Orgs](README.md#configure-orgs) for the values you can pass to this flag. |
67
- | `--toolsets` | Sets of tools, based on functionality, that you want to enable. | No | Set to "all" to enable every tool in every toolset. <br/> <br/>See [Configure Toolsets](README.md#configure-toolsets) for the values you can pass to this flag.|
137
+ | `--orgs` | One or more orgs that you've locally authorized. | Yes | You must specify at least one org. <br/> <br/>See [Configure Orgs](./README.md#configure-orgs) for the values you can pass to this flag. |
138
+ | `--toolsets` | Sets of tools, based on functionality, that you want to enable. | No | Set to "all" to enable every tool in every toolset. <br/> <br/>See [Configure Toolsets](./README.md#configure-toolsets) for the values you can pass to this flag.|
68
139
  | `--tools` | Individual tool names that you want to enable. | No | You can use this flag in combination with the `--toolsets` flag. For example, you can enable all tools in one toolset, and just one tool in a different toolset. |
69
140
  | `--no-telemetry` | Boolean flag to disable telemetry, the automatic collection of data for monitoring and analysis. | No | Telemetry is enabled by default, so specify this flag to disable it. |
70
141
  | `--debug` | Boolean flag that requests that the DX MCP Server print debug logs. | No | Debug mode is disabled by default. <br/> <br/>**NOTE:** Not all MCP clients expose MCP logs, so this flag might not work for all IDEs. |
@@ -211,7 +282,7 @@ Orchestrates the complete Aura to LWC migration workflow. Provides end-to-end gu
211
282
  - `guide_lwc_best_practices` - (GA) Offers LWC development best practices and coding standards guidance
212
283
  - `guide_lwc_development` - (GA) Comprehensive LWC development workflow and implementation guidelines
213
284
  - `guide_lwc_rtl_support` - (GA) Right-to-Left internationalization support and RTL development guidance
214
- - `guide_lwc_slds2_uplift_linter_fixes` - (GA) Analyzes the given LWC code along with the slds-linter output to fix issues using the SLDS2 knowledge
285
+ - `guide_lwc_slds2_uplift_linter_fixes` - (NON-GA) Analyzes the given LWC code along with the slds-linter output to fix issues using the SLDS2 knowledge
215
286
  - `guide_lwc_security` - (GA) Comprehensive security analysis in accordance with Product Security Guidelines and Lightning Web Security Guidelines
216
287
  - `guide_design_general` - (GA) Comprehensive SLDS guidelines and best practices for Lightning Web Components with accessibility, responsive design, and component usage patterns
217
288
 
@@ -220,7 +291,7 @@ Orchestrates the complete Aura to LWC migration workflow. Provides end-to-end gu
220
291
  - `orchestrate_lwc_component_creation` - (GA) Step-by-step component creation workflow guidance
221
292
  - `orchestrate_lwc_component_optimization` - (GA) Performance optimization and best practices for LWC components
222
293
  - `orchestrate_lwc_component_testing` - (GA) Comprehensive testing workflow and test generation guidance
223
- - `orchestrate_lwc_slds2_uplift` - (GA) Migration guidance for upgrading to SLDS2 design system
294
+ - `orchestrate_lwc_slds2_uplift` - (NON-GA) Migration guidance for upgrading to SLDS2 design system
224
295
 
225
296
  #### LDS (Lightning Data Service) Tools
226
297