@umbraco-engage/mcp 18.2.0 → 18.2.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/README.md CHANGED
@@ -13,7 +13,7 @@ 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
18
  ## Versions
19
19
 
@@ -155,12 +155,21 @@ For example, `UMBRACO_INCLUDE_SLICES=read,list` registers only read and list too
155
155
 
156
156
  ## CMS MCP Server Chaining
157
157
 
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: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`).
159
159
 
160
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.
161
161
 
162
162
  To disable chaining, set `DISABLE_MCP_CHAINING=true`.
163
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
+
164
173
  ## License
165
174
 
166
175
  MIT
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import { randomUUID } from 'crypto';
12
12
 
13
13
  // package.json
14
14
  var package_default = {
15
- version: "18.2.0"};
15
+ version: "18.2.2"};
16
16
  var isMockMode = () => process.env.USE_MOCK_API === "true" && !process.env.JEST_WORKER_ID;
17
17
  var mockItems = /* @__PURE__ */ new Map();
18
18
  function initializeMockData() {
@@ -10843,7 +10843,7 @@ var collections = [
10843
10843
  ];
10844
10844
  await handleCliCommands(collections, {
10845
10845
  cliFlags: serverConfig.cliFlags,
10846
- serverName: "my-umbraco-mcp",
10846
+ serverName: "umbraco-engage-mcp",
10847
10847
  serverVersion: package_default.version,
10848
10848
  filterConfig,
10849
10849
  serverConfig: serverConfig.umbraco
@@ -10851,7 +10851,7 @@ await handleCliCommands(collections, {
10851
10851
  var engageVersionStatus = clientId ? await checkEngageVersion({ readVersion: readInstalledEngageVersion }) : ENGAGE_VERSION_NOT_CHECKED;
10852
10852
  var instructions = [versionCheckMessage, engageVersionWarning(engageVersionStatus)].filter(Boolean).join("\n\n");
10853
10853
  var server = new McpServer(
10854
- { name: "umbraco-engage-editor-mcp", version: package_default.version },
10854
+ { name: "umbraco-engage-mcp", version: package_default.version },
10855
10855
  instructions ? { instructions } : void 0
10856
10856
  );
10857
10857
  var registeredToolCount = 0;