@easy-cms/plugin-mcp 1.25.1 → 1.26.0

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -12,11 +12,10 @@ 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: "1.25.1" } : {}
15
+ ...true ? { version: "1.26.0" } : {}
16
16
  };
17
17
 
18
18
  // src/tools.ts
19
- import "@easy-cms/core";
20
19
  import { INTERNAL_COLLECTIONS, keyAllows } from "@easy-cms/core/internal";
21
20
 
22
21
  // src/schema.ts
@@ -112,10 +111,13 @@ function fieldSchema(field) {
112
111
  })
113
112
  }
114
113
  };
114
+ // Stores nothing (and is gone from a resolved config).
115
+ case "ui":
116
+ return {};
115
117
  }
116
118
  }
117
119
  function objectSchema(fields, strict) {
118
- const visible = fields.filter((f) => !f.hidden);
120
+ const visible = fields.filter((f) => !f.hidden && f.type !== "ui");
119
121
  const required = strict ? visible.filter((f) => f.required && f.defaultValue === void 0 && f.type !== "slug").map((f) => f.name) : [];
120
122
  return {
121
123
  type: "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/plugin-mcp",
3
- "version": "1.25.1",
3
+ "version": "1.26.0",
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",
@@ -19,11 +19,11 @@
19
19
  "@modelcontextprotocol/sdk": "^1.32.1"
20
20
  },
21
21
  "peerDependencies": {
22
- "@easy-cms/core": "^1.25.1"
22
+ "@easy-cms/core": "^1.26.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@easy-cms/db-sqlite": "^1.25.1",
26
- "@easy-cms/core": "^1.25.1"
25
+ "@easy-cms/core": "^1.26.0",
26
+ "@easy-cms/db-sqlite": "^1.26.0"
27
27
  },
28
28
  "engines": {
29
29
  "node": ">=22.12"