@umbraco-cms/mcp-dev 18.1.8 → 18.1.10

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
@@ -39,6 +39,8 @@ Download and install the [Claude Desktop app](https://claude.ai/download), then
39
39
 
40
40
  3. Fully restart Claude Desktop (including in the system tray on Windows)
41
41
 
42
+ > **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.
43
+
42
44
  ## Documentation
43
45
 
44
46
  For complete installation instructions, configuration options, tool listings, and usage examples, see the full documentation:
package/collections.d.ts CHANGED
@@ -12,6 +12,23 @@ export declare const allModes: ToolModeDefinition[];
12
12
  export declare const allModeNames: readonly string[];
13
13
  export declare const allSliceNames: readonly string[];
14
14
 
15
+ /**
16
+ * Sets the connected Umbraco server version so collection registrations can
17
+ * gate tools that depend on endpoints introduced in newer Umbraco releases.
18
+ * Mirrors what src/index.ts (the stdio entry point) calls at startup; an
19
+ * in-process consumer should call this with the connected server's version
20
+ * before building its tool list.
21
+ */
22
+ export declare function setUmbracoVersion(version: string | null | undefined): void;
23
+
24
+ /**
25
+ * Controls whether the filePath upload source is exposed in media upload
26
+ * tools. Defaults to false; set to true only where local filesystem access
27
+ * is actually available (as src/index.ts does for the Node/stdio entry
28
+ * point).
29
+ */
30
+ export declare function setAllowFilePathUploads(allow: boolean): void;
31
+
15
32
  export declare class UmbracoManagementClient {
16
33
  private constructor();
17
34
  static getClient(): unknown;