@umbraco-engage/mcp 17.5.0 → 18.2.1

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
@@ -13,25 +13,22 @@ An MCP (Model Context Protocol) server for [Umbraco Engage](https://umbraco.com/
13
13
 
14
14
  The MCP server authenticates using an Umbraco API user, ensuring secure, permission-based access to the Umbraco Engage API. Credentials are provided via OAuth2 client credentials and used for every request to the Engage Management API.
15
15
 
16
- It chains to the [Umbraco CMS MCP server](https://www.npmjs.com/package/@umbraco-cms/mcp-dev), proxying its tools with a `cms:` prefix. This gives your AI agent access to both Engage and CMS capabilities in a single session — useful when personalization, A/B tests, or campaigns need to reference real documents, media, or content types.
16
+ It chains to the [Umbraco CMS MCP server](https://www.npmjs.com/package/@umbraco-cms/mcp-dev), proxying its tools with a `cms--` prefix. This gives your AI agent access to both Engage and CMS capabilities in a single session — useful when personalization, A/B tests, or campaigns need to reference real documents, media, or content types.
17
17
 
18
- ## Which version for which Umbraco
18
+ ## Versions
19
19
 
20
- | Umbraco | Umbraco Engage | Package |
21
- |---------|----------------|---------|
22
- | 18 | 18.2.0 or later | `@umbraco-engage/mcp` (18.x, built from `v18/main`) |
23
- | **17** | **17.5.0 or later** | **`@umbraco-engage/mcp@lts-17`** (built from `main`) |
20
+ Install the line that matches your Umbraco major:
24
21
 
25
- Install the version that matches your site's Umbraco major — the API client differs between them.
22
+ | Umbraco | Package version | Source branches |
23
+ |---|---|---|
24
+ | 18 (with Umbraco Engage 18.2.0 or later) | `18.x` | `v18/main`, `v18/dev` |
25
+ | 17 (with Umbraco Engage 17.x) | `17.x` | `main`, `dev` |
26
+
27
+ Engage changed its Management API within 18.x, so the Umbraco 18 line needs Umbraco Engage 18.2.0 or later. On an older Umbraco Engage the affected tools (A/B tests, personalization, analytics queries and a few others) refuse to run, with a message naming the required version; the other tools keep working.
26
28
 
27
- Umbraco Engage 17.5.0 changed its Management API (A/B tests and applied personalization reference
28
- goals, projects and segments by key, and two endpoints were removed), so the Umbraco 17 line needs
29
- Umbraco Engage 17.5.0 or later. On an older Umbraco Engage the affected tools (A/B tests, personalization,
30
- analytics queries and a few others) refuse to run, with a message naming the required version; the
31
- other tools keep working.
29
+ The server checks the connected Umbraco's major version at startup and blocks the first tool call with a warning if it doesn't match. Set `UMBRACO_EXPECTED_MAJOR` only to override that deliberately.
32
30
 
33
- The Umbraco 17 line is published under its own `lts-17` dist-tags, so it never takes over `latest`
34
- or `beta` from the Umbraco 18 line. Install `@lts-17`.
31
+ Note for contributors: this repo's branch layout is deliberately the reverse of the Umbraco CMS, Forms and Automate MCP repos, which keep their newest major on `main`/`dev` and Umbraco 17 on `v17/*`.
35
32
 
36
33
  ## Quick Start
37
34
 
@@ -52,7 +49,7 @@ Add the server to your MCP client configuration (Claude Desktop, Cursor, VS Code
52
49
  "mcpServers": {
53
50
  "umbraco-engage": {
54
51
  "command": "npx",
55
- "args": ["@umbraco-engage/mcp@lts-17"],
52
+ "args": ["@umbraco-engage/mcp"],
56
53
  "env": {
57
54
  "NODE_TLS_REJECT_UNAUTHORIZED": "0",
58
55
  "UMBRACO_CLIENT_ID": "your-api-user-id",
@@ -83,6 +80,7 @@ client's `env` block) win over a `.env` file in the working directory. A file pa
83
80
  | `UMBRACO_CLIENT_ID` | `--umbraco-client-id` | OAuth client ID |
84
81
  | `UMBRACO_CLIENT_SECRET` | `--umbraco-client-secret` | OAuth client secret |
85
82
  | `UMBRACO_BASE_URL` | `--umbraco-base-url` | Umbraco instance URL |
83
+ | `UMBRACO_EXPECTED_MAJOR` | `--umbraco-expected-major` | Override the Umbraco major this server expects (normally leave unset) |
86
84
 
87
85
  ### Tool Filtering
88
86
 
@@ -116,7 +114,7 @@ Modes are named groups that enable related collections together. Set `UMBRACO_TO
116
114
 
117
115
  | Collection | Tools | Description |
118
116
  |---|---|---|
119
- | `ab-test` | 11 | A/B test CRUD, pages, preview URL, runtime indication, view model |
117
+ | `ab-test` | 12 | A/B test CRUD, start/stop, pages, runtime indication, view model |
120
118
  | `ab-test-project` | 6 | A/B test project CRUD and details |
121
119
  | `ab-test-variant` | 7 | Variants: create, disable, details, segment lookup |
122
120
  | `add-ons` | 1 | Engage add-on metadata |
@@ -143,7 +141,7 @@ Modes are named groups that enable related collections together. Set `UMBRACO_TO
143
141
  | `referral-scoring` | 2 | Mark referrals as scored / unscored |
144
142
  | `reporting` | 6 | Reporting generation, segment and goal performance |
145
143
  | `search-terms` | 1 | Search terms report |
146
- | `segments` | 7 | Segments CRUD, content assignment, priority, locations |
144
+ | `segments` | 6 | Segments CRUD, priority, locations |
147
145
  | `statistics` | 1 | Overall Engage statistics |
148
146
  | `suspicious-activity` | 1 | Suspicious activity overview |
149
147
  | `traffic-filter` | 5 | Traffic filter CRUD |
@@ -157,12 +155,21 @@ For example, `UMBRACO_INCLUDE_SLICES=read,list` registers only read and list too
157
155
 
158
156
  ## CMS MCP Server Chaining
159
157
 
160
- This server automatically chains to the [Umbraco CMS MCP server](https://www.npmjs.com/package/@umbraco-cms/mcp-dev), sharing the same API user credentials. All CMS tools are proxied with a `cms:` prefix (e.g. `cms:get-document`, `cms:list-media`).
158
+ This server automatically chains to the [Umbraco CMS MCP server](https://www.npmjs.com/package/@umbraco-cms/mcp-dev), sharing the same API user credentials. All CMS tools are proxied with a `cms--` prefix (e.g. `cms--get-document`, `cms--get-media-root`).
161
159
 
162
160
  This means your AI agent can work with both Engage and CMS content in a single conversation without needing to configure two separate MCP servers. Any mode, collection, and slice filter configuration is passed through to the chained server.
163
161
 
164
162
  To disable chaining, set `DISABLE_MCP_CHAINING=true`.
165
163
 
164
+ The hosted (Cloudflare Worker) server chains the same CMS tools, with the same `cms--` prefix,
165
+ in-process rather than as a subprocess, using the signed-in backoffice user's token. By default
166
+ its consent screen has no tool choices, as in the CMS editor MCP, and every Engage and CMS tool is
167
+ available. Set `ENABLE_CONSENT_TOOL_SELECTION=true` on the Worker to let users pick tool groups.
168
+ There the CMS tools are **opt-in**: the CMS groups have their own section, and only the ones
169
+ ticked are added. If you tick only CMS groups, tick the Engage groups you want too, or the Engage
170
+ tools are left out. `DISABLE_MCP_CHAINING=true` on the Worker leaves the CMS tools out, as it
171
+ does over stdio.
172
+
166
173
  ## License
167
174
 
168
175
  MIT