@umbraco-cms/mcp-dev 17.3.0 → 17.3.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/dist/index.cjs +16 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -14
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +7901 -0
- package/package.json +9 -4
package/dist/index.cjs
CHANGED
|
@@ -3924,7 +3924,7 @@ var require_core = _chunkZMREPEAAcjs.__commonJS.call(void 0, {
|
|
|
3924
3924
|
constructor(opts = {}) {
|
|
3925
3925
|
this.schemas = {};
|
|
3926
3926
|
this.refs = {};
|
|
3927
|
-
this.formats =
|
|
3927
|
+
this.formats = /* @__PURE__ */ Object.create(null);
|
|
3928
3928
|
this._compilations = /* @__PURE__ */ new Set();
|
|
3929
3929
|
this._loading = {};
|
|
3930
3930
|
this._cache = /* @__PURE__ */ new Map();
|
|
@@ -12422,7 +12422,7 @@ var StdioServerTransport = class {
|
|
|
12422
12422
|
// package.json
|
|
12423
12423
|
var package_default = {
|
|
12424
12424
|
name: "@umbraco-cms/mcp-dev",
|
|
12425
|
-
version: "17.3.
|
|
12425
|
+
version: "17.3.2",
|
|
12426
12426
|
type: "module",
|
|
12427
12427
|
description: "A model context protocol (MCP) server for Umbraco CMS",
|
|
12428
12428
|
main: "dist/index.js",
|
|
@@ -12431,6 +12431,9 @@ var package_default = {
|
|
|
12431
12431
|
"./collections": {
|
|
12432
12432
|
types: "./collections.d.ts",
|
|
12433
12433
|
import: "./dist/collections.js"
|
|
12434
|
+
},
|
|
12435
|
+
"./tool-types": {
|
|
12436
|
+
types: "./dist/tool-types.d.ts"
|
|
12434
12437
|
}
|
|
12435
12438
|
},
|
|
12436
12439
|
mcpName: "io.github.umbraco/Umbraco-CMS-MCP-Dev",
|
|
@@ -12440,6 +12443,7 @@ var package_default = {
|
|
|
12440
12443
|
scripts: {
|
|
12441
12444
|
clean: "rimraf dist",
|
|
12442
12445
|
build: "tsup --config tsup.config.ts",
|
|
12446
|
+
postbuild: "umbraco-mcp-generate-types --collections ./dist/collections.js --out ./dist/tool-types.d.ts --registry-name CmsTools",
|
|
12443
12447
|
compile: "tsc --noEmit",
|
|
12444
12448
|
watch: "tsup --config tsup.config.ts --watch",
|
|
12445
12449
|
generate: "orval --config orval.config.ts",
|
|
@@ -12452,7 +12456,8 @@ var package_default = {
|
|
|
12452
12456
|
"test:e2e-sdk:verbose": "E2E_VERBOSITY=verbose node --experimental-vm-modules node_modules/jest/bin/jest.js tests/e2e-sdk --runInBand --testTimeout=120000 --forceExit",
|
|
12453
12457
|
"test:e2e-sdk:debug": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config tests/e2e-sdk/jest.config.ts --runInBand --detectOpenHandles",
|
|
12454
12458
|
"test:e2e": "npx playwright test --config tests/cms-hosted-e2e/playwright.config.ts",
|
|
12455
|
-
"umbraco:
|
|
12459
|
+
"umbraco:bootstrap": "bash scripts/bootstrap-demo-site.sh",
|
|
12460
|
+
"umbraco:start": "bash scripts/bootstrap-demo-site.sh && dotnet run --project demo-site",
|
|
12456
12461
|
"umbraco:stop": "lsof -ti :44391 | xargs kill 2>/dev/null; lsof -ti :56472 | xargs kill 2>/dev/null",
|
|
12457
12462
|
"dev:hosted": "wrangler dev"
|
|
12458
12463
|
},
|
|
@@ -12485,8 +12490,8 @@ var package_default = {
|
|
|
12485
12490
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
12486
12491
|
"@types/uuid": "^10.0.0",
|
|
12487
12492
|
"@types/yargs": "^17.0.33",
|
|
12488
|
-
"@umbraco-cms/mcp-hosted": "^17.0.0-beta.
|
|
12489
|
-
"@umbraco-cms/mcp-server-sdk": "^17.0.0-beta.
|
|
12493
|
+
"@umbraco-cms/mcp-hosted": "^17.0.0-beta.16",
|
|
12494
|
+
"@umbraco-cms/mcp-server-sdk": "^17.0.0-beta.16",
|
|
12490
12495
|
axios: "^1.8.4",
|
|
12491
12496
|
dotenv: "^16.5.0",
|
|
12492
12497
|
"form-data": "^4.0.4",
|
|
@@ -12615,7 +12620,6 @@ var CollectionResolver = {
|
|
|
12615
12620
|
|
|
12616
12621
|
|
|
12617
12622
|
|
|
12618
|
-
|
|
12619
12623
|
var ToolRegistrar = {
|
|
12620
12624
|
/**
|
|
12621
12625
|
* Check if a tool is allowed based on its explicit slice assignments.
|
|
@@ -12652,14 +12656,13 @@ var ToolRegistrar = {
|
|
|
12652
12656
|
}
|
|
12653
12657
|
if (_optionalChain([config, 'access', _245 => _245.disabledTools, 'optionalAccess', _246 => _246.includes, 'call', _247 => _247(tool.name)])) return;
|
|
12654
12658
|
if (_optionalChain([config, 'access', _248 => _248.enabledTools, 'optionalAccess', _249 => _249.length]) && !config.enabledTools.includes(tool.name)) return;
|
|
12655
|
-
const
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
outputSchema: paginatedTool.outputSchema,
|
|
12659
|
+
const annotations = _mcpserversdk.createToolAnnotations.call(void 0, tool);
|
|
12660
|
+
server.registerTool(tool.name, {
|
|
12661
|
+
description: tool.description,
|
|
12662
|
+
inputSchema: tool.inputSchema,
|
|
12663
|
+
outputSchema: tool.outputSchema,
|
|
12661
12664
|
annotations
|
|
12662
|
-
},
|
|
12665
|
+
}, tool.handler);
|
|
12663
12666
|
});
|
|
12664
12667
|
}
|
|
12665
12668
|
};
|