@umbraco-cms/mcp-dev 19.0.0-beta.2 → 19.0.0-rc.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 +2 -0
- package/dist/index.cjs +9 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -14
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -43,6 +43,8 @@ Download and install the [Claude Desktop app](https://claude.ai/download), then
|
|
|
43
43
|
|
|
44
44
|
> **Tip:** Pin `@umbraco-cms/mcp-dev` to your site's Umbraco major (e.g. `@17` above, or `@18` for an Umbraco 18.x site) rather than `@latest`. Tool schemas track the Management API of the package's own major, so a mismatched major can fail confusingly mid-task once a tool's shape has drifted. The server checks the connected site's version on startup and warns on a mismatch, but pinning avoids it altogether.
|
|
45
45
|
|
|
46
|
+
> **Chaining from another MCP server:** a parent server that runs `@umbraco-cms/mcp-dev` as a chained subprocess and runs its own Umbraco-major check can set `UMBRACO_MCP_PARENT_CHECKED_MAJOR` in the child's env (build it with `chainedVersionCheckEnv()` from `@umbraco-cms/mcp-server-sdk`). When it names the major mcp-dev checks against (the package's own major, or `UMBRACO_EXPECTED_MAJOR` if you set it), mcp-dev skips its own check, so a mismatch is only reported once. A value for a different major is ignored. Only set it from a parent server that has checked the same Umbraco instance. Setting it by hand to silence the warning isn't supported.
|
|
47
|
+
|
|
46
48
|
## Documentation
|
|
47
49
|
|
|
48
50
|
For complete installation instructions, configuration options, tool listings, and usage examples, see the full documentation:
|
package/dist/index.cjs
CHANGED
|
@@ -12915,7 +12915,7 @@ var StdioServerTransport = class {
|
|
|
12915
12915
|
// package.json
|
|
12916
12916
|
var package_default = {
|
|
12917
12917
|
name: "@umbraco-cms/mcp-dev",
|
|
12918
|
-
version: "19.0.0-
|
|
12918
|
+
version: "19.0.0-rc.1",
|
|
12919
12919
|
type: "module",
|
|
12920
12920
|
description: "A model context protocol (MCP) server for Umbraco CMS",
|
|
12921
12921
|
main: "dist/index.js",
|
|
@@ -12987,8 +12987,8 @@ var package_default = {
|
|
|
12987
12987
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
12988
12988
|
"@types/uuid": "^10.0.0",
|
|
12989
12989
|
"@types/yargs": "^17.0.33",
|
|
12990
|
-
"@umbraco-cms/mcp-hosted": "^1.1.
|
|
12991
|
-
"@umbraco-cms/mcp-server-sdk": "^1.1.
|
|
12990
|
+
"@umbraco-cms/mcp-hosted": "^1.1.2",
|
|
12991
|
+
"@umbraco-cms/mcp-server-sdk": "^1.1.2",
|
|
12992
12992
|
dotenv: "^16.5.0",
|
|
12993
12993
|
"form-data": "^4.0.4",
|
|
12994
12994
|
"mime-types": "^3.0.1",
|
|
@@ -13244,21 +13244,17 @@ var main = async () => {
|
|
|
13244
13244
|
let serverInfo;
|
|
13245
13245
|
let serverInfoError;
|
|
13246
13246
|
try {
|
|
13247
|
-
serverInfo = await client.getServerInformation();
|
|
13247
|
+
serverInfo = await _mcpserversdk.withVersionCheckDeadline.call(void 0, (signal) => client.getServerInformation({ signal }));
|
|
13248
13248
|
} catch (error) {
|
|
13249
13249
|
serverInfoError = error;
|
|
13250
13250
|
}
|
|
13251
13251
|
if (serverInfo) {
|
|
13252
13252
|
_chunk3JASEIYKcjs.setUmbracoVersion.call(void 0, serverInfo.version);
|
|
13253
13253
|
}
|
|
13254
|
-
await _mcpserversdk.
|
|
13254
|
+
const versionCheck = await _mcpserversdk.prepareStartupVersionCheck.call(void 0, {
|
|
13255
|
+
expectedUmbracoMajorOverride: process.env.UMBRACO_EXPECTED_MAJOR,
|
|
13256
|
+
generatedUmbracoMajor: UMBRACO_TARGET_MAJOR,
|
|
13255
13257
|
mcpVersion: package_default.version,
|
|
13256
|
-
// UMBRACO_TARGET_MAJOR is stamped into src/config/umbraco-target.generated.ts
|
|
13257
|
-
// by the orval target-major transformer, from the Umbraco instance the API
|
|
13258
|
-
// client was generated against. Override to point at a different major.
|
|
13259
|
-
// (`?.trim() ||`, not `??`: an env var set to an empty string must still
|
|
13260
|
-
// fall back, or the check silently no-ops with no log output at all.)
|
|
13261
|
-
expectedUmbracoMajor: _optionalChain([process, 'access', _271 => _271.env, 'access', _272 => _272.UMBRACO_EXPECTED_MAJOR, 'optionalAccess', _273 => _273.trim, 'call', _274 => _274()]) || UMBRACO_TARGET_MAJOR,
|
|
13262
13258
|
client: {
|
|
13263
13259
|
getServerInformation: async () => {
|
|
13264
13260
|
if (serverInfo) return serverInfo;
|
|
@@ -13281,8 +13277,8 @@ var main = async () => {
|
|
|
13281
13277
|
filterConfig,
|
|
13282
13278
|
serverConfig: config
|
|
13283
13279
|
});
|
|
13284
|
-
|
|
13285
|
-
const versionCheckMessage =
|
|
13280
|
+
versionCheck.armBlock();
|
|
13281
|
+
const versionCheckMessage = versionCheck.message;
|
|
13286
13282
|
const server = new McpServer(
|
|
13287
13283
|
{
|
|
13288
13284
|
name: "Umbraco CMS Developer MCP Server",
|