microcms-mcp-server 0.5.1 → 0.5.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.
@@ -0,0 +1,2 @@
1
+ export declare const FIELD_FORMATS_DESCRIPTION = "\n Create new content in microCMS and publish it immediately. \n\n ## Important\n Ensure that the \"content\" you submit strictly adheres to the following specifications.\n In particular, take extra care when handling custom fields, as mistakes are common in their structure. \n Read the instructions thoroughly and construct the data precisely as described.\n \n ## Field type specifications\n \n * Image fields require URL string uploaded to microCMS media library (e.g., \"https://images.microcms-assets.io/assets/xxx/yyy/sample.png\"). \n * Multiple image fields use array format. \n * Rich editor fields expect HTML strings. \n * Date fields use ISO 8601 format. \n * Select fields use arrays. \n * Content reference fields use contentId strings or arrays for multiple references, and you can get contentIds from microcms_get_list tool. \n * Custom field exepect below struct:\n ```json\n <field Id in apiFields> {\n \"fieldId\": \"<target custom field id in customFields>\"\n \"key1\": \"<value1>\",\n \"key2\": \"<value2>\",\n }\n ```\n ";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,sjCAwBnC,CAAC"}
@@ -0,0 +1,26 @@
1
+ export const FIELD_FORMATS_DESCRIPTION = `
2
+ Create new content in microCMS and publish it immediately.
3
+
4
+ ## Important
5
+ Ensure that the "content" you submit strictly adheres to the following specifications.
6
+ In particular, take extra care when handling custom fields, as mistakes are common in their structure.
7
+ Read the instructions thoroughly and construct the data precisely as described.
8
+
9
+ ## Field type specifications
10
+
11
+ * Image fields require URL string uploaded to microCMS media library (e.g., "https://images.microcms-assets.io/assets/xxx/yyy/sample.png").
12
+ * Multiple image fields use array format.
13
+ * Rich editor fields expect HTML strings.
14
+ * Date fields use ISO 8601 format.
15
+ * Select fields use arrays.
16
+ * Content reference fields use contentId strings or arrays for multiple references, and you can get contentIds from microcms_get_list tool.
17
+ * Custom field exepect below struct:
18
+ \`\`\`json
19
+ <field Id in apiFields> {
20
+ "fieldId": "<target custom field id in customFields>"
21
+ "key1": "<value1>",
22
+ "key2": "<value2>",
23
+ }
24
+ \`\`\`
25
+ `;
26
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;GAwBtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-content-draft.d.ts","sourceRoot":"","sources":["../../src/tools/create-content-draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAyB,MAAM,aAAa,CAAC;AAEzE,eAAO,MAAM,sBAAsB,EAAE,IAqBpC,CAAC;AAEF,wBAAsB,wBAAwB,CAAC,MAAM,EAAE,cAAc;;GAcpE"}
1
+ {"version":3,"file":"create-content-draft.d.ts","sourceRoot":"","sources":["../../src/tools/create-content-draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAyB,MAAM,aAAa,CAAC;AAGzE,eAAO,MAAM,sBAAsB,EAAE,IAqBpC,CAAC;AAEF,wBAAsB,wBAAwB,CAAC,MAAM,EAAE,cAAc;;GAcpE"}
@@ -1,7 +1,8 @@
1
1
  import { create } from '../client.js';
2
+ import { FIELD_FORMATS_DESCRIPTION } from '../constants.js';
2
3
  export const createContentDraftTool = {
3
4
  name: 'microcms_create_content_draft',
4
- description: 'Create new content in microCMS as draft. Field type specifications: Image fields require URLs from the same microCMS service (e.g., "https://images.microcms-assets.io/assets/xxx/yyy/sample.png"), only the URL string is required. Multiple image fields use array format. Rich editor fields expect HTML strings. Date fields use ISO 8601 format. Select fields use arrays. Content reference fields use contentId strings or arrays for multiple references.',
5
+ description: FIELD_FORMATS_DESCRIPTION,
5
6
  inputSchema: {
6
7
  type: 'object',
7
8
  properties: {
@@ -11,7 +12,7 @@ export const createContentDraftTool = {
11
12
  },
12
13
  content: {
13
14
  type: 'object',
14
- description: 'Content data to create (JSON object). Field formats: text="string", richEditor="<h1>HTML</h1>", image="https://images.microcms-assets.io/...", multipleImages=["url1","url2"], date="2020-04-23T14:32:38.163Z", select=["option1","option2"], contentReference="contentId" or ["id1","id2"].',
15
+ description: `Content data to create (JSON object). ` + FIELD_FORMATS_DESCRIPTION,
15
16
  },
16
17
  contentId: {
17
18
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"create-content-draft.js","sourceRoot":"","sources":["../../src/tools/create-content-draft.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,MAAM,CAAC,MAAM,sBAAsB,GAAS;IAC1C,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,mcAAmc;IAChd,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8RAA8R;aAC5S;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;KAClC;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,MAAsB;IACnE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC;IAEjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,C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QAAE,aAAa,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAEnE,OAAO,MAAM,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AACxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-content-published.d.ts","sourceRoot":"","sources":["../../src/tools/create-content-published.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAyB,MAAM,aAAa,CAAC;AAEzE,eAAO,MAAM,0BAA0B,EAAE,IAqBxC,CAAC;AAEF,wBAAsB,4BAA4B,CAAC,MAAM,EAAE,cAAc;;GAcxE"}
1
+ {"version":3,"file":"create-content-published.d.ts","sourceRoot":"","sources":["../../src/tools/create-content-published.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAyB,MAAM,aAAa,CAAC;AAGzE,eAAO,MAAM,0BAA0B,EAAE,IAqBxC,CAAC;AAEF,wBAAsB,4BAA4B,CAAC,MAAM,EAAE,cAAc;;GAcxE"}
@@ -1,7 +1,8 @@
1
1
  import { create } from '../client.js';
2
+ import { FIELD_FORMATS_DESCRIPTION } from '../constants.js';
2
3
  export const createContentPublishedTool = {
3
4
  name: 'microcms_create_content_published',
4
- description: 'Create new content in microCMS and publish it immediately. Field type specifications: Image fields require URLs from the same microCMS service (e.g., "https://images.microcms-assets.io/assets/xxx/yyy/sample.png"), only the URL string is required. Multiple image fields use array format. Rich editor fields expect HTML strings. Date fields use ISO 8601 format. Select fields use arrays. Content reference fields use contentId strings or arrays for multiple references, and you can get contentIds from microcms_get_list tool.',
5
+ description: FIELD_FORMATS_DESCRIPTION,
5
6
  inputSchema: {
6
7
  type: 'object',
7
8
  properties: {
@@ -11,7 +12,7 @@ export const createContentPublishedTool = {
11
12
  },
12
13
  content: {
13
14
  type: 'object',
14
- description: 'Content data to create (JSON object). Field formats: text="string", richEditor="<h1>HTML</h1>", image="https://images.microcms-assets.io/...", multipleImages=["url1","url2"], date="2020-04-23T14:32:38.163Z", select=["option1","option2"], contentReference="contentId" or ["id1","id2"].',
15
+ description: `Content data to create (JSON object). ` + FIELD_FORMATS_DESCRIPTION,
15
16
  },
16
17
  contentId: {
17
18
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"create-content-published.js","sourceRoot":"","sources":["../../src/tools/create-content-published.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,MAAM,CAAC,MAAM,0BAA0B,GAAS;IAC9C,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,6gBAA6gB;IAC1hB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8RAA8R;aAC5S;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;KAClC;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,MAAsB;IACvE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC;IAEjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,aAAa,GAA0B;QAC3C,OAAO,EAAE,KAAK,EAAE,iBAAiB;KAClC,CAAC;IAEF,IAAI,OAAO,CAAC,SAAS;QAAE,aAAa,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAEnE,OAAO,MAAM,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AACxD,CAAC"}
1
+ {"version":3,"file":"create-content-published.js","sourceRoot":"","sources":["../../src/tools/create-content-published.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,CAAC,MAAM,0BAA0B,GAAS;IAC9C,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC,GAAG,yBAAyB;aAClF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;KAClC;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,MAAsB;IACvE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC;IAEjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,aAAa,GAA0B;QAC3C,OAAO,EAAE,KAAK,EAAE,iBAAiB;KAClC,CAAC;IAEF,IAAI,OAAO,CAAC,SAAS;QAAE,aAAa,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAEnE,OAAO,MAAM,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AACxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"patch-content.d.ts","sourceRoot":"","sources":["../../src/tools/patch-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAyB,MAAM,aAAa,CAAC;AAEzE,eAAO,MAAM,gBAAgB,EAAE,IAyB9B,CAAC;AAEF,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,cAAc;;GAgB9D"}
1
+ {"version":3,"file":"patch-content.d.ts","sourceRoot":"","sources":["../../src/tools/patch-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAyB,MAAM,aAAa,CAAC;AAGzE,eAAO,MAAM,gBAAgB,EAAE,IAyB9B,CAAC;AAEF,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,cAAc;;GAgB9D"}
@@ -1,7 +1,8 @@
1
1
  import { patch } from '../client.js';
2
+ import { FIELD_FORMATS_DESCRIPTION } from '../constants.js';
2
3
  export const patchContentTool = {
3
4
  name: 'microcms_patch_content',
4
- description: 'Partially update content in microCMS (PATCH). Field type specifications: Image fields require URLs from the same microCMS service (e.g., "https://images.microcms-assets.io/assets/xxx/yyy/sample.png"). Multiple image fields use array format. Rich editor fields expect HTML strings. Date fields use ISO 8601 format. Select fields use arrays. Content reference fields use contentId strings or arrays for multiple references.',
5
+ description: FIELD_FORMATS_DESCRIPTION,
5
6
  inputSchema: {
6
7
  type: 'object',
7
8
  properties: {
@@ -15,7 +16,7 @@ export const patchContentTool = {
15
16
  },
16
17
  content: {
17
18
  type: 'object',
18
- description: 'Partial content data to update (JSON object). Field formats: text="string", richEditor="<h1>HTML</h1>", image="https://images.microcms-assets.io/...", multipleImages=["url1","url2"], date="2020-04-23T14:32:38.163Z", select=["option1","option2"], contentReference="contentId" or ["id1","id2"].',
19
+ description: `Partial content data to update (JSON object). ` + FIELD_FORMATS_DESCRIPTION,
19
20
  },
20
21
  isDraft: {
21
22
  type: 'boolean',
@@ -1 +1 @@
1
- {"version":3,"file":"patch-content.js","sourceRoot":"","sources":["../../src/tools/patch-content.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAGrC,MAAM,CAAC,MAAM,gBAAgB,GAAS;IACpC,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,uaAAua;IACpb,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sBAAsB;aACpC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sSAAsS;aACpT;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,eAAe;aAC7B;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC;KAC/C;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,MAAsB;IAC7D,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC;IAE5D,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,aAAa,GAA0B,EAAE,CAAC;IAEhD,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS;QAAE,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAE3E,OAAO,MAAM,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE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E3E,OAAO,MAAM,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AAClE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-content-draft.d.ts","sourceRoot":"","sources":["../../src/tools/update-content-draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAyB,MAAM,aAAa,CAAC;AAEzE,eAAO,MAAM,sBAAsB,EAAE,IAqBpC,CAAC;AAEF,wBAAsB,wBAAwB,CAAC,MAAM,EAAE,cAAc;;GAgBpE"}
1
+ {"version":3,"file":"update-content-draft.d.ts","sourceRoot":"","sources":["../../src/tools/update-content-draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAyB,MAAM,aAAa,CAAC;AAGzE,eAAO,MAAM,sBAAsB,EAAE,IAqBpC,CAAC;AAEF,wBAAsB,wBAAwB,CAAC,MAAM,EAAE,cAAc;;GAgBpE"}
@@ -1,7 +1,8 @@
1
1
  import { update } from '../client.js';
2
+ import { FIELD_FORMATS_DESCRIPTION } from '../constants.js';
2
3
  export const updateContentDraftTool = {
3
4
  name: 'microcms_update_content_draft',
4
- description: 'Update content in microCMS (PUT - full update) as draft. Field type specifications: Image fields require URLs from the same microCMS service (e.g., "https://images.microcms-assets.io/assets/xxx/yyy/sample.png"). Multiple image fields use array format. Rich editor fields expect HTML strings. Date fields use ISO 8601 format. Select fields use arrays. Content reference fields use contentId strings or arrays for multiple references.',
5
+ description: FIELD_FORMATS_DESCRIPTION,
5
6
  inputSchema: {
6
7
  type: 'object',
7
8
  properties: {
@@ -15,7 +16,7 @@ export const updateContentDraftTool = {
15
16
  },
16
17
  content: {
17
18
  type: 'object',
18
- description: 'Content data to update (JSON object). Field formats: text="string", richEditor="<h1>HTML</h1>", image="https://images.microcms-assets.io/...", multipleImages=["url1","url2"], date="2020-04-23T14:32:38.163Z", select=["option1","option2"], contentReference="contentId" or ["id1","id2"].',
19
+ description: `Content data to update (JSON object). ` + FIELD_FORMATS_DESCRIPTION,
19
20
  },
20
21
  },
21
22
  required: ['endpoint', 'contentId', 'content'],
@@ -1 +1 @@
1
- {"version":3,"file":"update-content-draft.js","sourceRoot":"","sources":["../../src/tools/update-content-draft.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,MAAM,CAAC,MAAM,sBAAsB,GAAS;IAC1C,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,kbAAkb;IAC/b,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sBAAsB;aACpC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8RAA8R;aAC5S;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC;KAC/C;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,MAAsB;IACnE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEhD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,aAAa,GAA0B;QAC3C,OAAO,EAAE,IAAI,EAAE,uBAAuB;KACvC,CAAC;IAEF,OAAO,MAAM,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AACnE,CAAC"}
1
+ {"version":3,"file":"update-content-draft.js","sourceRoot":"","sources":["../../src/tools/update-content-draft.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,CAAC,MAAM,sBAAsB,GAAS;IAC1C,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sBAAsB;aACpC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC,GAAG,yBAAyB;aAClF;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC;KAC/C;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,MAAsB;IACnE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEhD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,aAAa,GAA0B;QAC3C,OAAO,EAAE,IAAI,EAAE,uBAAuB;KACvC,CAAC;IAEF,OAAO,MAAM,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AACnE,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { update } from '../client.js';
2
+ import { FIELD_FORMATS_DESCRIPTION } from '../constants.js';
2
3
  export const updateContentPublishedTool = {
3
4
  name: 'microcms_update_content_published',
4
- description: 'Update content in microCMS (PUT - full update) and publish it immediately. Field type specifications: Image fields require URLs from the same microCMS service (e.g., "https://images.microcms-assets.io/assets/xxx/yyy/sample.png"). Multiple image fields use array format. Rich editor fields expect HTML strings. Date fields use ISO 8601 format. Select fields use arrays. Content reference fields use contentId strings or arrays for multiple references.',
5
+ description: FIELD_FORMATS_DESCRIPTION,
5
6
  inputSchema: {
6
7
  type: 'object',
7
8
  properties: {
@@ -15,7 +16,7 @@ export const updateContentPublishedTool = {
15
16
  },
16
17
  content: {
17
18
  type: 'object',
18
- description: 'Content data to update (JSON object). Field formats: text="string", richEditor="<h1>HTML</h1>", image="https://images.microcms-assets.io/...", multipleImages=["url1","url2"], date="2020-04-23T14:32:38.163Z", select=["option1","option2"], contentReference="contentId" or ["id1","id2"].',
19
+ description: `Content data to update (JSON object). ` + FIELD_FORMATS_DESCRIPTION,
19
20
  },
20
21
  },
21
22
  required: ['endpoint', 'contentId', 'content'],
@@ -1 +1 @@
1
- {"version":3,"file":"update-content-published.js","sourceRoot":"","sources":["../../src/tools/update-content-published.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,MAAM,CAAC,MAAM,0BAA0B,GAAS;IAC9C,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,ocAAoc;IACjd,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sBAAsB;aACpC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8RAA8R;aAC5S;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC;KAC/C;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,MAAsB;IACvE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEhD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,aAAa,GAA0B;QAC3C,OAAO,EAAE,KAAK,EAAE,iBAAiB;KAClC,CAAC;IAEF,OAAO,MAAM,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AACnE,CAAC"}
1
+ {"version":3,"file":"update-content-published.js","sourceRoot":"","sources":["../../src/tools/update-content-published.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,MAAM,CAAC,MAAM,0BAA0B,GAAS;IAC9C,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sBAAsB;aACpC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC,GAAG,yBAAyB;aAClF;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC;KAC/C;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,MAAsB;IACvE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEhD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,aAAa,GAA0B;QAC3C,OAAO,EAAE,KAAK,EAAE,iBAAiB;KAClC,CAAC;IAEF,OAAO,MAAM,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AACnE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microcms-mcp-server",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "microCMS MCP Bundle - microCMSのコンテンツAPIやマネジメントAPIを利用し、LLMからコンテンツ管理ができるMCP Bundle",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",