@easy-cms/plugin-mcp 0.68.0 → 0.68.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.js +3 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var INFO = {
|
|
|
12
12
|
name: "@easy-cms/plugin-mcp",
|
|
13
13
|
// The plugin API it is written for (`PLUGIN_API_VERSION` of @easy-cms/core).
|
|
14
14
|
apiVersion: 1,
|
|
15
|
-
...true ? { version: "0.68.
|
|
15
|
+
...true ? { version: "0.68.2" } : {}
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
// src/tools.ts
|
|
@@ -257,7 +257,7 @@ function buildTools(cms, user, options = {}, context = {}) {
|
|
|
257
257
|
if (may(target, "update")) {
|
|
258
258
|
tools.push({
|
|
259
259
|
name: `update_${slug}`,
|
|
260
|
-
description: `Change fields of a ${name} document; fields left out stay as they are.${drafts ? ` Changes are saved as a draft; call publish_${slug} to put them live.` : ""}`,
|
|
260
|
+
description: `Change fields of a ${name} document; fields left out stay as they are.${drafts ? c.versions ? ` Changes are saved as a draft and the live version stays; call publish_${slug} to put them live.` : ` Changes are saved as a draft: a published document goes off the site until you call publish_${slug}.` : ""}`,
|
|
261
261
|
inputSchema: obj({ id, data: objectSchema(c.fields, false), ...locale }, ["id", "data"]),
|
|
262
262
|
run: async (args) => cms.update(
|
|
263
263
|
slug,
|
|
@@ -349,7 +349,7 @@ function buildTools(cms, user, options = {}, context = {}) {
|
|
|
349
349
|
if (may(target, "update")) {
|
|
350
350
|
tools.push({
|
|
351
351
|
name: `update_global_${slug}`,
|
|
352
|
-
description: `Change the ${name} settings; fields left out stay as they are.${drafts ? ` Saved as a draft; call publish_global_${slug} to put it live.` : ""}`,
|
|
352
|
+
description: `Change the ${name} settings; fields left out stay as they are.${drafts ? g.versions ? ` Saved as a draft and the live settings stay; call publish_global_${slug} to put it live.` : ` Saved as a draft: published settings go off the site until you call publish_global_${slug}.` : ""}`,
|
|
353
353
|
inputSchema: obj({ data: objectSchema(g.fields, false), ...locale }, ["data"]),
|
|
354
354
|
run: async (args) => cms.updateGlobal(slug, asDraft(g, prepareInput(g.fields, args.data ?? {})), {
|
|
355
355
|
...access,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-cms/plugin-mcp",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.2",
|
|
4
4
|
"description": "MCP server for Easy CMS: let AI assistants read and write content with API keys (experimental)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
19
|
+
"@modelcontextprotocol/sdk": "^1.32.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@easy-cms/core": "^0.68.
|
|
22
|
+
"@easy-cms/core": "^0.68.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@easy-cms/core": "^0.68.
|
|
26
|
-
"@easy-cms/db-sqlite": "^0.68.
|
|
25
|
+
"@easy-cms/core": "^0.68.2",
|
|
26
|
+
"@easy-cms/db-sqlite": "^0.68.2"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=22.12"
|