@umbraco-cms/mcp-dev 17.6.14 → 17.8.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/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  availableCollections,
10
10
  setAllowFilePathUploads,
11
11
  setUmbracoVersion
12
- } from "./chunk-7WQYZOKX.js";
12
+ } from "./chunk-SELP32TD.js";
13
13
 
14
14
  // node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/codegen/code.js
15
15
  var require_code = __commonJS({
@@ -18601,7 +18601,7 @@ var StdioServerTransport = class {
18601
18601
  // package.json
18602
18602
  var package_default = {
18603
18603
  name: "@umbraco-cms/mcp-dev",
18604
- version: "17.6.14",
18604
+ version: "17.8.1",
18605
18605
  type: "module",
18606
18606
  description: "A model context protocol (MCP) server for Umbraco CMS",
18607
18607
  main: "dist/index.js",
@@ -18672,8 +18672,8 @@ var package_default = {
18672
18672
  "@modelcontextprotocol/sdk": "^1.28.0",
18673
18673
  "@types/uuid": "^10.0.0",
18674
18674
  "@types/yargs": "^17.0.33",
18675
- "@umbraco-cms/mcp-hosted": "^1.0.0",
18676
- "@umbraco-cms/mcp-server-sdk": "^1.0.0",
18675
+ "@umbraco-cms/mcp-hosted": "^1.2.0",
18676
+ "@umbraco-cms/mcp-server-sdk": "^1.2.0",
18677
18677
  dotenv: "^16.5.0",
18678
18678
  "form-data": "^4.0.4",
18679
18679
  "mime-types": "^3.0.1",
@@ -18876,7 +18876,7 @@ Readonly mode: Disabled ${filteredTools.length} write tools:`);
18876
18876
  }
18877
18877
 
18878
18878
  // src/index.ts
18879
- import { checkUmbracoVersion, configureVersionCheckHook, getVersionCheckMessage, configureApiClient, initializeUmbracoFetch, getServerConfig as getServerConfig2, handleCliCommands, createCollectionConfigLoader as createCollectionConfigLoader2 } from "@umbraco-cms/mcp-server-sdk";
18879
+ import { prepareStartupVersionCheck, withVersionCheckDeadline, configureApiClient, initializeUmbracoFetch, getServerConfig as getServerConfig2, handleCliCommands, createCollectionConfigLoader as createCollectionConfigLoader2 } from "@umbraco-cms/mcp-server-sdk";
18880
18880
 
18881
18881
  // src/config/umbraco-target.generated.ts
18882
18882
  var UMBRACO_TARGET_MAJOR = "17";
@@ -18929,21 +18929,17 @@ var main = async () => {
18929
18929
  let serverInfo;
18930
18930
  let serverInfoError;
18931
18931
  try {
18932
- serverInfo = await client.getServerInformation();
18932
+ serverInfo = await withVersionCheckDeadline((signal) => client.getServerInformation({ signal }));
18933
18933
  } catch (error) {
18934
18934
  serverInfoError = error;
18935
18935
  }
18936
18936
  if (serverInfo) {
18937
18937
  setUmbracoVersion(serverInfo.version);
18938
18938
  }
18939
- await checkUmbracoVersion({
18939
+ const versionCheck = await prepareStartupVersionCheck({
18940
+ expectedUmbracoMajorOverride: process.env.UMBRACO_EXPECTED_MAJOR,
18941
+ generatedUmbracoMajor: UMBRACO_TARGET_MAJOR,
18940
18942
  mcpVersion: package_default.version,
18941
- // UMBRACO_TARGET_MAJOR is stamped into src/config/umbraco-target.generated.ts
18942
- // by the orval target-major transformer, from the Umbraco instance the API
18943
- // client was generated against. Override to point at a different major.
18944
- // (`?.trim() ||`, not `??`: an env var set to an empty string must still
18945
- // fall back, or the check silently no-ops with no log output at all.)
18946
- expectedUmbracoMajor: process.env.UMBRACO_EXPECTED_MAJOR?.trim() || UMBRACO_TARGET_MAJOR,
18947
18943
  client: {
18948
18944
  getServerInformation: async () => {
18949
18945
  if (serverInfo) return serverInfo;
@@ -18966,8 +18962,8 @@ var main = async () => {
18966
18962
  filterConfig,
18967
18963
  serverConfig: config
18968
18964
  });
18969
- configureVersionCheckHook();
18970
- const versionCheckMessage = getVersionCheckMessage();
18965
+ versionCheck.armBlock();
18966
+ const versionCheckMessage = versionCheck.message;
18971
18967
  const server = new McpServer(
18972
18968
  {
18973
18969
  name: "Umbraco CMS Developer MCP Server",