@umbraco-cms/mcp-dev 17.3.0 → 17.3.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.cjs +8 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -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.1",
|
|
12426
12426
|
type: "module",
|
|
12427
12427
|
description: "A model context protocol (MCP) server for Umbraco CMS",
|
|
12428
12428
|
main: "dist/index.js",
|
|
@@ -12486,7 +12486,7 @@ var package_default = {
|
|
|
12486
12486
|
"@types/uuid": "^10.0.0",
|
|
12487
12487
|
"@types/yargs": "^17.0.33",
|
|
12488
12488
|
"@umbraco-cms/mcp-hosted": "^17.0.0-beta.8",
|
|
12489
|
-
"@umbraco-cms/mcp-server-sdk": "^17.0.0-beta.
|
|
12489
|
+
"@umbraco-cms/mcp-server-sdk": "^17.0.0-beta.12",
|
|
12490
12490
|
axios: "^1.8.4",
|
|
12491
12491
|
dotenv: "^16.5.0",
|
|
12492
12492
|
"form-data": "^4.0.4",
|
|
@@ -12615,7 +12615,6 @@ var CollectionResolver = {
|
|
|
12615
12615
|
|
|
12616
12616
|
|
|
12617
12617
|
|
|
12618
|
-
|
|
12619
12618
|
var ToolRegistrar = {
|
|
12620
12619
|
/**
|
|
12621
12620
|
* Check if a tool is allowed based on its explicit slice assignments.
|
|
@@ -12652,14 +12651,13 @@ var ToolRegistrar = {
|
|
|
12652
12651
|
}
|
|
12653
12652
|
if (_optionalChain([config, 'access', _245 => _245.disabledTools, 'optionalAccess', _246 => _246.includes, 'call', _247 => _247(tool.name)])) return;
|
|
12654
12653
|
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,
|
|
12654
|
+
const annotations = _mcpserversdk.createToolAnnotations.call(void 0, tool);
|
|
12655
|
+
server.registerTool(tool.name, {
|
|
12656
|
+
description: tool.description,
|
|
12657
|
+
inputSchema: tool.inputSchema,
|
|
12658
|
+
outputSchema: tool.outputSchema,
|
|
12661
12659
|
annotations
|
|
12662
|
-
},
|
|
12660
|
+
}, tool.handler);
|
|
12663
12661
|
});
|
|
12664
12662
|
}
|
|
12665
12663
|
};
|