mcp-server-sfmc 0.1.6 → 0.1.8

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # mcp-server-sfmc
2
2
 
3
- MCP server providing Salesforce Marketing Cloud language intelligence — AMPscript, SSJS, and GTL — as Model Context Protocol tools, resources, and prompts for AI-assisted development and code review.
3
+ MCP server providing Salesforce Marketing Cloud language intelligence — AMPscript, SSJS, and GTL — as Model Context Protocol tools, resources, and prompts for AI-assisted development and code review. It also ships a **searchable index** of mirrored Salesforce Help for **Marketing Cloud Engagement** administration and setup (business units, Journey Builder, Automation Studio, tenants, and similar topics), with explicit scoping vs **Marketing Cloud Next** (a separate product).
4
4
 
5
5
  Built on [sfmc-language-lsp](https://github.com/JoernBerkefeld/sfmc-language-lsp), the same engine that powers the [SFMC Language Service VS Code extension](https://marketplace.visualstudio.com/items?itemName=joernberkefeld.sfmc-language).
6
6
 
@@ -43,6 +43,7 @@ None of these replace the VS Code extension for **editing** (syntax, LSP, snippe
43
43
  | **Completions** | AMPscript function/keyword completions, SSJS Platform API catalog |
44
44
  | **Prompts** | Guided prompts for writing AMPscript, SSJS, reviewing code, and converting between the two |
45
45
  | **Resources** | Full function catalogs, keyword list, unsupported ES6+ syntax list |
46
+ | **MCE help search** | Bundled excerpts from local Help mirrors (`docs/help.salesforce/mce`) with Engagement vs Next labeling |
46
47
 
47
48
  ## Quick start
48
49
 
@@ -140,6 +141,7 @@ Then replace `"command": "npx", "args": ["-y", "mcp-server-sfmc@latest"]` with:
140
141
  | `get_ampscript_completions` | List valid completions at a given cursor position in AMPscript |
141
142
  | `get_ssjs_completions` | List SSJS Platform API completions, optionally filtered by prefix |
142
143
  | `format_sfmc_code` | Apply basic formatting conventions (keyword casing, quote normalisation) |
144
+ | `search_mce_help` | Search bundled Marketing Cloud setup/ops help; use `product_focus` to target **Engagement** vs **Next** |
143
145
 
144
146
  ## Resources
145
147
 
@@ -149,6 +151,8 @@ Then replace `"command": "npx", "args": ["-y", "mcp-server-sfmc@latest"]` with:
149
151
  | `sfmc://ssjs/functions` | Full SSJS function catalog |
150
152
  | `sfmc://ampscript/keywords` | All AMPscript keywords |
151
153
  | `sfmc://ssjs/unsupported-syntax` | ES6+ features not supported in SFMC SSJS |
154
+ | `sfmc://mce/product-context` | How **Marketing Cloud Engagement** differs from **Marketing Cloud Next** (when to use which) |
155
+ | `sfmc://mce/help-index` | List of bundled help files and section counts per product scope |
152
156
 
153
157
  ## Prompts
154
158
 
@@ -160,6 +164,20 @@ Access via `/mcp.sfmc.writeAmpscript` etc. in VS Code, or via the prompts API:
160
164
  | `writeSsjs` | Generate SSJS code for a described task |
161
165
  | `reviewSfmcCode` | Review AMPscript or SSJS code for bugs and best-practice violations |
162
166
  | `convertAmpscriptToSsjs` | Convert AMPscript code to equivalent SSJS |
167
+ | `answerMceHowTo` | Guided prompt for admin/setup questions — searches bundled help and keeps Engagement vs Next explicit |
168
+
169
+ ## Refresh bundled Marketing Cloud Engagement help
170
+
171
+ The published npm package includes `bundled/mce-help/chunks.json`, built from a checkout that contains the mirrored Help tree at `docs/help.salesforce/mce` (for example in this monorepo). To regenerate after updating those docs:
172
+
173
+ ```bash
174
+ cd mcp-server-sfmc
175
+ npm run bundle-mce-help
176
+ npm run build
177
+ npm test
178
+ ```
179
+
180
+ Override the source path: `MCE_HELP_DOCS=/absolute/path/to/mce npm run bundle-mce-help`
163
181
 
164
182
  ## AI code review in pull requests
165
183