@salesforce/mcp 0.23.2 → 0.23.4
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.
|
@@ -64,6 +64,15 @@ export async function registerToolsets(toolsets, tools, useDynamicTools, allowNo
|
|
|
64
64
|
const existingToolNames = new Set(toolRegistry.map(tool => tool.getName()));
|
|
65
65
|
// Validate that all requested tools exist
|
|
66
66
|
const invalidTools = tools.filter(toolName => !existingToolNames.has(toolName));
|
|
67
|
+
// This is a temporary fix to handle a tool rename. Tool alias support is coming soon.
|
|
68
|
+
// If the invalid tools list includes the *old* create_lwc_component tool name
|
|
69
|
+
if (invalidTools.includes('create_lwc_component')) {
|
|
70
|
+
ux.stderr('Tool "create_lwc_component" has been renamed to "create_lwc_component_from_prd". Update config to remove this warning.');
|
|
71
|
+
// Remove that entry from invalidTools
|
|
72
|
+
invalidTools.splice(invalidTools.indexOf('create_lwc_component'), 1);
|
|
73
|
+
// Then rename the old tool with create_lwc_component_from_prd in the tools array
|
|
74
|
+
tools[tools.indexOf('create_lwc_component')] = 'create_lwc_component_from_prd';
|
|
75
|
+
}
|
|
67
76
|
if (invalidTools.length > 0)
|
|
68
77
|
throw new Error(`Invalid tool names provided to --tools: "${invalidTools.join('", "')}"
|
|
69
78
|
Valid tools include:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/mcp",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.4",
|
|
4
4
|
"description": "MCP Server for interacting with Salesforce instances",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sf-mcp-server": "bin/run.js"
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@salesforce/core": "^8.23.1",
|
|
42
42
|
"@salesforce/kit": "^3.1.6",
|
|
43
43
|
"@salesforce/mcp-provider-api": "0.4.0",
|
|
44
|
-
"@salesforce/mcp-provider-dx-core": "0.3.
|
|
44
|
+
"@salesforce/mcp-provider-dx-core": "0.3.6",
|
|
45
45
|
"@salesforce/mcp-provider-code-analyzer": "0.2.0",
|
|
46
46
|
"@salesforce/mcp-provider-lwc-experts": "0.6.1",
|
|
47
47
|
"@salesforce/mcp-provider-aura-experts": "0.3.3",
|
|
48
48
|
"@salesforce/mcp-provider-mobile-web": "0.2.0",
|
|
49
|
-
"@salesforce/mcp-provider-devops": "0.1.
|
|
49
|
+
"@salesforce/mcp-provider-devops": "0.1.8",
|
|
50
50
|
"@salesforce/source-deploy-retrieve": "^12.22.0",
|
|
51
51
|
"@salesforce/source-tracking": "^7.4.8",
|
|
52
52
|
"@salesforce/telemetry": "^6.2.6",
|