@umbraco-cms/mcp-dev 18.1.9 → 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/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;