@easy-cms/plugin-mcp 0.28.0 → 0.29.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 +8 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -7,6 +7,12 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
7
7
  import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
8
8
  import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
9
9
 
10
+ // src/info.ts
11
+ var INFO = {
12
+ name: "@easy-cms/plugin-mcp",
13
+ ...true ? { version: "0.29.0" } : {}
14
+ };
15
+
10
16
  // src/tools.ts
11
17
  import {
12
18
  INTERNAL_COLLECTIONS,
@@ -380,7 +386,7 @@ var DEFAULT_INSTRUCTIONS = `Tools read and change the content of an Easy CMS sit
380
386
  - Rich text fields accept plain text (blank lines separate paragraphs).
381
387
  - Deleting cannot be undone.`;
382
388
  function mcpPlugin(options = {}) {
383
- return (config) => {
389
+ const plugin = (config) => {
384
390
  if (!config.apiKeys)
385
391
  throw new Error("mcpPlugin: set `apiKeys: true`; assistants connect with an API key");
386
392
  const endpoint = {
@@ -432,6 +438,7 @@ ${options.instructions}` : DEFAULT_INSTRUCTIONS
432
438
  };
433
439
  return { ...config, endpoints: [...config.endpoints ?? [], endpoint] };
434
440
  };
441
+ return Object.assign(plugin, { info: INFO });
435
442
  }
436
443
  function failure(text2) {
437
444
  return { isError: true, content: [{ type: "text", text: text2 }] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/plugin-mcp",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "description": "MCP server for Easy CMS: let AI assistants read and write content with API keys",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,11 +19,11 @@
19
19
  "@modelcontextprotocol/sdk": "^1.30.1"
20
20
  },
21
21
  "peerDependencies": {
22
- "@easy-cms/core": "^0.28.0"
22
+ "@easy-cms/core": "^0.29.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@easy-cms/core": "^0.28.0",
26
- "@easy-cms/db-sqlite": "^0.28.0"
25
+ "@easy-cms/core": "^0.29.0",
26
+ "@easy-cms/db-sqlite": "^0.29.0"
27
27
  },
28
28
  "engines": {
29
29
  "node": ">=22.12"