salesforce-metadata-mcp 2.5.0 → 2.5.2
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.
- package/CHANGELOG.md +46 -0
- package/README.md +15 -1
- package/TOOLS.md +2034 -103
- package/dist/index.js +4 -4
- package/dist/services/salesforce.js +349 -143
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.5.2] - 2026-05-29
|
|
4
|
+
|
|
5
|
+
### Bug Fixes — 9 SOAP API Compatibility Corrections
|
|
6
|
+
|
|
7
|
+
All fixes address HTTP 500 errors or incorrect metadata caused by element ordering or invalid elements in SOAP upsertMetadata calls against the Salesforce Metadata API v66.
|
|
8
|
+
|
|
9
|
+
#### `sf_create_list_view`
|
|
10
|
+
- **Fix:** Replaced invalid `<allUsers>` element with `<allInternalUsers/>` in the `SharedTo` type. The previous element caused HTTP 500 "Element allUsers invalid at this location."
|
|
11
|
+
|
|
12
|
+
#### `sf_create_email_template`
|
|
13
|
+
- **Fix:** Removed invalid `<htmlValue>` element from SOAP Metadata API v66; email templates now always use `type: text`. HTML content is preserved in `textOnly` field.
|
|
14
|
+
|
|
15
|
+
#### `sf_create_page_layout`
|
|
16
|
+
- **Fix:** The `Name` field in a layout section now gets `behavior: Required` instead of `behavior: Edit`. Salesforce enforces "Field:Name must be Required" for standard name fields.
|
|
17
|
+
|
|
18
|
+
#### `sf_clone_profile`
|
|
19
|
+
- **Fix:** Strips all `<tabVisibilities>` blocks from the cloned profile XML. Re-upserting profile tab settings for system-managed tabs (e.g., AINaturalLangProcessRslt) causes "You can't edit tab settings for..." errors.
|
|
20
|
+
|
|
21
|
+
#### `sf_add_picklist_values`
|
|
22
|
+
- **Fix:** Replaced Tooling API field lookup with `readMetadata` on the parent `CustomObject`. The Tooling API does not index fields created in the same session via the Metadata API, causing "Field not found" errors on freshly-created fields.
|
|
23
|
+
|
|
24
|
+
#### `sf_create_lightning_record_page` (`createFlexiPage`)
|
|
25
|
+
- **Fix:** Corrected element name from `<pageType>` to `<type>` (WSDL name). Added required `<template>` and `<flexiPageRegions>` elements. Corrected WSDL element ordering. Added support for `apiName` parameter alias.
|
|
26
|
+
|
|
27
|
+
#### `sf_create_letterhead`
|
|
28
|
+
- **Fix:** Rewrote XML structure to match WSDL sequence order (bottomLine → description → footer → header → middleLine → name → topLine). Fixed `LetterheadHeaderFooter` to use `<backgroundColor>` (not `<color>`, which is invalid in that type). Removed invalid `<fontFace>` and `<fontSize>` elements. Added required `<middleLine>` element. Removed invalid `<style>` element from `LetterheadLine`.
|
|
29
|
+
|
|
30
|
+
#### `sf_update_dashboard`
|
|
31
|
+
- **Fix:** When the target dashboard does not exist, creates it with all required fields: `backgroundEndColor`, `backgroundFadeDirection`, `backgroundStartColor`, `dashboardType`, `leftSection`, `rightSection`, `runningUser`, `textColor`, `title`, `titleColor`, `titleSize`.
|
|
32
|
+
|
|
33
|
+
#### `sf_create_quick_action`
|
|
34
|
+
- **Fix:** Corrected WSDL element ordering (alphabetical). Added `<quickActionLayout>` support when `fields` parameter is provided. Fields named `Subject`, `Name`, or `LastName` automatically receive `uiBehavior: Required`.
|
|
35
|
+
|
|
36
|
+
### Test Coverage
|
|
37
|
+
- **Before:** 65/83 (78%) → **After:** 76/83 (92%) — 11 additional tool passes
|
|
38
|
+
- All failures remaining are org-level limitations: empty-flow activation, OmniStudio (package not installed), Experience Cloud (feature not enabled), FlowInterview debug logging disabled
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## [2.5.1] - 2026-05-28
|
|
43
|
+
|
|
44
|
+
### Documentation
|
|
45
|
+
- Rewrote `TOOLS.md` as a comprehensive reference covering all 200+ tools (was 193 lines covering ~8 tools; now 2,100+ lines covering all 207 tools with parameters and example prompts)
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
3
49
|
## [2.5.0] - 2026-05-28
|
|
4
50
|
|
|
5
51
|
### New Tools — 45 Additions Across 11 Categories
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# salesforce-metadata-mcp
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.com/package/salesforce-metadata-mcp)
|
|
4
4
|
[](LICENSE)
|
|
5
5
|
[](https://modelcontextprotocol.io)
|
|
6
6
|
|
|
@@ -46,6 +46,20 @@ See [SETUP.md](SETUP.md) for all authentication methods and detailed setup instr
|
|
|
46
46
|
|
|
47
47
|
---
|
|
48
48
|
|
|
49
|
+
## What's New in v2.5.2
|
|
50
|
+
|
|
51
|
+
Bug-fix release: 9 SOAP API compatibility corrections that resolve HTTP 500 errors and incorrect metadata against Salesforce Metadata API v66. Test coverage improved from 78% → 92% (76/83 tools passing).
|
|
52
|
+
|
|
53
|
+
- **`sf_create_list_view`** — Fixed `<allUsers>` → `<allInternalUsers/>` in SharedTo type
|
|
54
|
+
- **`sf_create_email_template`** — Removed invalid `<htmlValue>` element (API v66 incompatible)
|
|
55
|
+
- **`sf_create_page_layout`** — Name field now correctly gets `behavior: Required`
|
|
56
|
+
- **`sf_clone_profile`** — Strips `<tabVisibilities>` for system-managed tabs before re-upsert
|
|
57
|
+
- **`sf_add_picklist_values`** — Switched from Tooling API to `readMetadata` for reliable field lookup
|
|
58
|
+
- **`sf_create_lightning_record_page`** — Fixed element name (`type` not `pageType`), added required `template` and `flexiPageRegions`
|
|
59
|
+
- **`sf_create_letterhead`** — Full WSDL-compliant rewrite: correct element order, `backgroundColor` in header/footer, added `middleLine`
|
|
60
|
+
- **`sf_update_dashboard`** — Creates dashboard when not found, with all required fields including `leftSection`/`rightSection`
|
|
61
|
+
- **`sf_create_quick_action`** — Correct WSDL element order, added `quickActionLayout` support
|
|
62
|
+
|
|
49
63
|
## What's New in v2.5.0
|
|
50
64
|
|
|
51
65
|
45 new tools across 11 categories:
|