@cmssy/mcp-server 0.66.0 → 0.68.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=shared-bucket-round-trip.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-bucket-round-trip.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/shared-bucket-round-trip.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,80 @@
1
+ import { describe, expect, it, vi } from "vitest";
2
+ import { createMcpWorkspaceOps } from "../ai-tools-ops.js";
3
+ import * as queries from "../queries.js";
4
+ const ROW = { label: "Docs", url: "/docs", icon: "Code" };
5
+ const HEADER = {
6
+ id: "b1",
7
+ type: "header",
8
+ region: "header",
9
+ order: 0,
10
+ isActive: true,
11
+ content: {
12
+ en: { navigation: [ROW] },
13
+ pl: { navigation: [{ ...ROW, label: "Dokumenty" }] },
14
+ },
15
+ settings: {},
16
+ style: null,
17
+ advanced: null,
18
+ translations: { en: { status: "completed" }, pl: { status: "completed" } },
19
+ defaultLanguage: "en",
20
+ metadata: null,
21
+ blockVersion: null,
22
+ };
23
+ function pageClient() {
24
+ const sent = [];
25
+ const query = vi.fn(async (document, variables) => {
26
+ sent.push({
27
+ document,
28
+ variables: (variables ?? {}),
29
+ });
30
+ if (document.includes("updateLayout")) {
31
+ return { page: { updateLayout: { id: "p1", blockWarnings: null } } };
32
+ }
33
+ if (document.includes("resolvedLayouts")) {
34
+ return { page: { resolvedLayouts: [] } };
35
+ }
36
+ return {
37
+ page: {
38
+ get: {
39
+ id: "p1",
40
+ name: "Page",
41
+ slug: "/page",
42
+ version: 3,
43
+ blocks: [],
44
+ layoutBlocks: [HEADER],
45
+ },
46
+ },
47
+ };
48
+ });
49
+ return { client: { query }, sent };
50
+ }
51
+ function blockDocuments() {
52
+ return Object.entries(queries).filter(([, document]) => typeof document === "string" && document.includes("advanced"));
53
+ }
54
+ describe("MCP reads whole rows, not the storage split (CMS-1793)", () => {
55
+ it("reads content folded on every block selection", () => {
56
+ const documents = blockDocuments();
57
+ expect(documents.length).toBeGreaterThan(0);
58
+ for (const [name, document] of documents) {
59
+ expect((document.match(/contentWithShared/g) ?? []).length, `${name} selects a block without asking for the folded content, so an agent reading it sees labels with no url to address`).toBe((document.match(/advanced/g) ?? []).length);
60
+ }
61
+ });
62
+ it("never asks for the raw shared bucket", () => {
63
+ for (const [name, document] of blockDocuments()) {
64
+ expect(document.match(/shared/g), `${name} still reads the bucket split; where a field is stored is the server's business`).toBeNull();
65
+ }
66
+ });
67
+ it("sends whole rows back and names no bucket the server owns", async () => {
68
+ const { client, sent } = pageClient();
69
+ const ops = createMcpWorkspaceOps(client);
70
+ await ops.pages.updateBlock("p1", "b1", { pl: { navigation: [{ ...ROW, label: "Dokumentacja" }] } }, undefined, "merge", undefined);
71
+ const write = sent.find((s) => s.document.includes("updateLayout"));
72
+ const written = (write?.variables.input).layoutBlocks[0];
73
+ expect(Object.hasOwn(written, "shared"), "an omitted bucket keeps its stored value (CMS-1792); naming it here would write back a copy the client never had a say in").toBe(false);
74
+ expect(written.content, "translating one language must not cost the others the url they were read with").toStrictEqual({
75
+ en: { navigation: [ROW] },
76
+ pl: { navigation: [{ ...ROW, label: "Dokumentacja" }] },
77
+ });
78
+ });
79
+ });
80
+ //# sourceMappingURL=shared-bucket-round-trip.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-bucket-round-trip.test.js","sourceRoot":"","sources":["../../src/__tests__/shared-bucket-round-trip.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAKzC,MAAM,GAAG,GAAG,EAAE,KAAK,EAAE,MAAM,EAA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AC,CAAC,CAAC"}
package/dist/queries.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare const PAGES_QUERY = "\n query Pages($search: String) {\n page { list(search: $search) {\n id\n name\n slug\n description\n displayName\n published\n publishedAt\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n pageType\n parentId\n customFields { fieldKey value }\n order\n version\n createdAt\n updatedAt\n } }\n }\n";
2
2
  export declare const PAGE_VERSION_QUERY = "\n query PageVersion($pageId: ID!) {\n page { get(pageId: $pageId) {\n id\n version\n } }\n }\n";
3
- export declare const PAGE_BY_ID_QUERY = "\n query PageById($pageId: ID!) {\n page { get(pageId: $pageId) {\n id\n name\n slug\n description\n displayName\n seoTitle\n seoDescription\n seoKeywords\n customFields { fieldKey value }\n published\n publishedAt\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n pageType\n parentId\n order\n version\n blocks {\n id\n type\n content\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n publishedBlocks {\n id\n type\n content\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n layoutBlocks {\n id type region order isActive\n content settings style advanced\n translations defaultLanguage\n metadata { createdAt updatedAt createdBy version }\n blockVersion\n }\n publishedLayoutBlocks {\n id type region order isActive\n content settings style advanced\n translations defaultLanguage\n metadata { createdAt updatedAt createdBy version }\n blockVersion\n }\n layoutOverrides { region action blockId }\n layoutRegionSettings { region values }\n inheritsLayout\n createdAt\n updatedAt\n } }\n }\n";
3
+ export declare const PAGE_BY_ID_QUERY = "\n query PageById($pageId: ID!) {\n page { get(pageId: $pageId) {\n id\n name\n slug\n description\n displayName\n seoTitle\n seoDescription\n seoKeywords\n customFields { fieldKey value }\n published\n publishedAt\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n pageType\n parentId\n order\n version\n blocks {\n id\n type\n content: contentWithShared\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n publishedBlocks {\n id\n type\n content: contentWithShared\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n layoutBlocks {\n id type region order isActive\n content: contentWithShared settings style advanced\n translations defaultLanguage\n metadata { createdAt updatedAt createdBy version }\n blockVersion\n }\n publishedLayoutBlocks {\n id type region order isActive\n content: contentWithShared settings style advanced\n translations defaultLanguage\n metadata { createdAt updatedAt createdBy version }\n blockVersion\n }\n layoutOverrides { region action blockId }\n layoutRegionSettings { region values }\n inheritsLayout\n createdAt\n updatedAt\n } }\n }\n";
4
4
  export declare const PAGE_RESOLVED_LAYOUTS_QUERY = "\n query PageResolvedLayouts($pageId: ID!) {\n page { resolvedLayouts(pageId: $pageId) {\n region\n isInherited\n sourcePageId\n settings\n settingsAreInherited\n settingsSourcePageId\n } }\n }\n";
5
5
  export declare const LAYOUT_REGIONS_QUERY = "\n query LayoutRegions {\n blockManifest { get { regions } }\n }\n";
6
6
  export declare const PAGE_REGION_SETTINGS_QUERY = "\n query PageRegionSettings($pageId: ID!) {\n page { get(pageId: $pageId) {\n id\n version\n layoutRegionSettings { region values }\n } }\n }\n";
@@ -18,9 +18,9 @@ export declare const MEDIA_FOLDERS_QUERY = "\n query MediaFolders($parentId: ID
18
18
  export declare const CREATE_MEDIA_FOLDER_MUTATION = "\n mutation CreateMediaFolder($input: CreateMediaFolderInput!) {\n media {\n createFolder(input: $input) {\n id\n name\n parentId\n }\n }\n }\n";
19
19
  export declare const UPDATE_MEDIA_FOLDER_MUTATION = "\n mutation UpdateMediaFolder($id: ID!, $input: UpdateMediaFolderInput!) {\n media {\n updateFolder(id: $id, input: $input) {\n id\n name\n parentId\n }\n }\n }\n";
20
20
  export declare const DELETE_MEDIA_FOLDER_MUTATION = "\n mutation DeleteMediaFolder($id: ID!, $deleteContents: Boolean, $force: Boolean) {\n media {\n deleteFolder(id: $id, deleteContents: $deleteContents, force: $force) {\n id\n deleted\n }\n }\n }\n";
21
- export declare const SAVE_PAGE_MUTATION = "\n mutation SavePage($input: SavePageInput!) {\n page { save(input: $input) {\n id\n blockWarnings\n version\n name\n slug\n description\n displayName\n seoTitle\n seoDescription\n seoKeywords\n customFields { fieldKey value }\n published\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n pageType\n parentId\n blocks {\n id\n type\n content\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n createdAt\n updatedAt\n } }\n }\n";
21
+ export declare const SAVE_PAGE_MUTATION = "\n mutation SavePage($input: SavePageInput!) {\n page { save(input: $input) {\n id\n blockWarnings\n version\n name\n slug\n description\n displayName\n seoTitle\n seoDescription\n seoKeywords\n customFields { fieldKey value }\n published\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n pageType\n parentId\n blocks {\n id\n type\n content: contentWithShared\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n createdAt\n updatedAt\n } }\n }\n";
22
22
  export declare const PATCH_BLOCK_CONTENT_MUTATION = "\n mutation PatchBlockContent($input: PatchBlockContentInput!) {\n page { patchBlockContent(input: $input) {\n id\n blockWarnings\n slug\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n } }\n }\n";
23
- export declare const DEV_DRAFT_QUERY = "\n query DevDraft($pageId: String!) {\n page { devDraft(pageId: $pageId) {\n pageId\n updatedAt\n blocks {\n id\n type\n content\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n } }\n }\n";
23
+ export declare const DEV_DRAFT_QUERY = "\n query DevDraft($pageId: String!) {\n page { devDraft(pageId: $pageId) {\n pageId\n updatedAt\n blocks {\n id\n type\n content: contentWithShared\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n } }\n }\n";
24
24
  export declare const SAVE_DEV_DRAFT_MUTATION = "\n mutation SaveDevDraft($input: SaveDevDraftInput!) {\n page { saveDevDraft(input: $input) {\n pageId\n updatedAt\n } }\n }\n";
25
25
  export declare const PROMOTE_DEV_DRAFT_MUTATION = "\n mutation PromoteDevDraft($input: PromoteDevDraftInput!) {\n page { promoteDevDraft(input: $input) {\n id\n blockWarnings\n updatedAt\n } }\n }\n";
26
26
  export declare const UPDATE_PAGE_SETTINGS_MUTATION = "\n mutation UpdatePageSettings($input: UpdatePageSettingsInput!) {\n page { updateSettings(input: $input) {\n id\n name\n slug\n description\n displayName\n seoTitle\n seoDescription\n seoKeywords\n customFields { fieldKey value }\n pageType\n parentId\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n } }\n }\n";
@@ -31,12 +31,12 @@ export declare const DELETE_PAGE_TYPE_MUTATION = "\n mutation DeletePageType($i
31
31
  export declare const CREATE_PAGE_TYPE_MUTATION = "\n mutation CreatePageType($input: CreatePageTypeInput!) {\n pageType {\n create(input: $input) {\n id\n name\n slug\n description\n icon\n schemaType\n urlPrefix\n allowChildren\n fields { key label type required description options defaultValue }\n }\n }\n }\n";
32
32
  export declare const TAKE_OVER_PAGE_LOCK_MUTATION = "\n mutation TakeOverPageLock($pageId: ID!) {\n page { takeOverLock(pageId: $pageId) {\n lockHolderId\n lockHeldByMe\n } }\n }\n";
33
33
  export declare const TOGGLE_PUBLISH_MUTATION = "\n mutation TogglePublish($id: ID!) {\n page { togglePublish(id: $id) {\n id\n slug\n published\n publishedAt\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n } }\n }\n";
34
- export declare const PUBLISH_PAGE_CONTENT_MUTATION = "\n mutation PublishPageContent($id: ID!) {\n page { publishContent(id: $id) {\n id\n slug\n published\n publishedAt\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n blocks {\n id\n type\n content\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n } }\n }\n";
34
+ export declare const PUBLISH_PAGE_CONTENT_MUTATION = "\n mutation PublishPageContent($id: ID!) {\n page { publishContent(id: $id) {\n id\n slug\n published\n publishedAt\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n blocks {\n id\n type\n content: contentWithShared\n settings\n style\n advanced\n translations\n defaultLanguage\n metadata {\n createdAt\n updatedAt\n createdBy\n version\n }\n blockVersion\n }\n } }\n }\n";
35
35
  export declare const PUBLISH_PAGE_LAYOUT_MUTATION = "\n mutation PublishPageLayout($id: ID!) {\n page { publishLayout(id: $id) {\n id\n slug\n published\n publishedAt\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n } }\n }\n";
36
- export declare const REVERT_CONTENT_TO_PUBLISHED_MUTATION = "\n mutation RevertContentToPublished($id: ID!) {\n page { revertContentToPublished(id: $id) {\n id\n name\n slug\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n blocks {\n id type content settings style advanced\n translations defaultLanguage blockVersion\n }\n } }\n }\n";
36
+ export declare const REVERT_CONTENT_TO_PUBLISHED_MUTATION = "\n mutation RevertContentToPublished($id: ID!) {\n page { revertContentToPublished(id: $id) {\n id\n name\n slug\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n blocks {\n id type content: contentWithShared settings style advanced\n translations defaultLanguage blockVersion\n }\n } }\n }\n";
37
37
  export declare const REVERT_LAYOUT_TO_PUBLISHED_MUTATION = "\n mutation RevertLayoutToPublished($id: ID!) {\n page { revertLayoutToPublished(id: $id) {\n id\n name\n slug\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n } }\n }\n";
38
38
  export declare const REMOVE_PAGE_MUTATION = "\n mutation RemovePage($id: ID!) {\n page { delete(id: $id) { deleted } }\n }\n";
39
- export declare const UPDATE_PAGE_LAYOUT_MUTATION = "\n mutation UpdatePageLayout($input: UpdatePageLayoutInput!) {\n page { updateLayout(input: $input) {\n id\n blockWarnings\n slug\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n layoutBlocks {\n id type region order isActive\n content settings style advanced\n translations defaultLanguage\n metadata { createdAt updatedAt createdBy version }\n blockVersion\n }\n layoutOverrides { region action blockId }\n inheritsLayout\n } }\n }\n";
39
+ export declare const UPDATE_PAGE_LAYOUT_MUTATION = "\n mutation UpdatePageLayout($input: UpdatePageLayoutInput!) {\n page { updateLayout(input: $input) {\n id\n blockWarnings\n slug\n hasUnpublishedContentChanges\n hasUnpublishedLayoutChanges\n updatedAt\n layoutBlocks {\n id type region order isActive\n content: contentWithShared settings style advanced\n translations defaultLanguage\n metadata { createdAt updatedAt createdBy version }\n blockVersion\n }\n layoutOverrides { region action blockId }\n inheritsLayout\n } }\n }\n";
40
40
  export declare const UPDATE_LAYOUT_REGION_SETTINGS_MUTATION = "\n mutation UpdateLayoutRegionSettings($input: UpdatePageLayoutInput!) {\n page { updateLayout(input: $input) {\n id\n version\n blockWarnings\n hasUnpublishedLayoutChanges\n updatedAt\n layoutRegionSettings { region values }\n } }\n }\n";
41
41
  export declare const FORMS_QUERY = "\n query Forms($status: String, $skip: Int, $limit: Int) {\n form {\n list(status: $status, skip: $skip, limit: $limit) {\n forms { \n id\n name\n slug\n description\n status\n fields {\n id name fieldType\n label placeholder helpText\n defaultValue\n validation { required minLength maxLength minValue maxValue pattern customMessage }\n options { value label disabled }\n width order showWhen\n }\n settings {\n actionType webhookUrl emailRecipients\n submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin\n saveSubmissions sendEmailNotification emailConfigurationId\n }\n submissionCount\n createdAt updatedAt createdBy updatedBy\n }\n total\n hasMore\n }\n }\n }\n";
42
42
  export declare const FORM_BY_ID_QUERY = "\n query Form($formId: ID!) {\n form {\n get(formId: $formId) {\n \n id\n name\n slug\n description\n status\n fields {\n id name fieldType\n label placeholder helpText\n defaultValue\n validation { required minLength maxLength minValue maxValue pattern customMessage }\n options { value label disabled }\n width order showWhen\n }\n settings {\n actionType webhookUrl emailRecipients\n submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin\n saveSubmissions sendEmailNotification emailConfigurationId\n }\n submissionCount\n createdAt updatedAt createdBy updatedBy\n\n }\n }\n }\n";
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../src/queries.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,mZAqBvB,CAAC;AAIF,eAAO,MAAM,kBAAkB,sHAO9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,0nDA2E5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,8OAWvC,CAAC;AAEF,eAAO,MAAM,oBAAoB,4EAIhC,CAAC;AAEF,eAAO,MAAM,0BAA0B,2KAQtC,CAAC;AAmBF,eAAO,MAAM,iBAAiB,qkBAa7B,CAAC;AAEF,eAAO,MAAM,2BAA2B,mHAQvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,giBASvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,qhBAStC,CAAC;AAEF,eAAO,MAAM,oBAAoB,wIAUhC,CAAC;AAIF,eAAO,MAAM,uBAAuB,geA0BnC,CAAC;AAIF,eAAO,MAAM,kBAAkB,4WAqB9B,CAAC;AAEF,eAAO,MAAM,+BAA+B,sSAW3C,CAAC;AAEF,eAAO,MAAM,8BAA8B,8NAa1C,CAAC;AAEF,eAAO,MAAM,qBAAqB,4JAQjC,CAAC;AAIF,eAAO,MAAM,mBAAmB,mNAa/B,CAAC;AAEF,eAAO,MAAM,4BAA4B,2LAUxC,CAAC;AAEF,eAAO,MAAM,4BAA4B,8MAUxC,CAAC;AAEF,eAAO,MAAM,4BAA4B,0OASxC,CAAC;AAIF,eAAO,MAAM,kBAAkB,yvBAwC9B,CAAC;AAOF,eAAO,MAAM,4BAA4B,wQAWxC,C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YAmB7B,CAAC;AAoBF,eAAO,MAAM,eAAe,+fAsB3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,+NAIhC,CAAC;AAEF,eAAO,MAAM,wBAAwB,qQAIpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,wRAIpC,CAAC;AAEF,eAAO,MAAM,6BAA6B,0RAIzC,CAAC;AAcF,eAAO,MAAM,uBAAuB,gJAInC,CAAC;AAEF,eAAO,MAAM,wBAAwB,6UAmBpC,CAAC;AAEF,eAAO,MAAM,yBAAyB,qEAIrC,CAAC;AAEF,eAAO,MAAM,gCAAgC,uQAS5C,CAAC;AAEF,eAAO,MAAM,gCAAgC,8MAI5C,CAAC;AAEF,eAAO,MAAM,8BAA8B,0OAS1C,CAAC;AAEF,eAAO,MAAM,gCAAgC,0GAI5C,CAAC;AAIF,eAAO,MAAM,qBAAqB,21BA4CjC,CAAC;AAEF,eAAO,MAAM,0BAA0B,oPAUtC,CAAC;AAEF,eAAO,MAAM,oCAAoC,6PAUhD,CAAC;AAEF,eAAO,MAAM,oCAAoC,0MAShD,CAAC;AAEF,eAAO,MAAM,aAAa,sTAoBzB,CAAC;AAEF,eAAO,MAAM,WAAW,kLAavB,CAAC"}
package/dist/queries.js CHANGED
@@ -54,7 +54,7 @@ export const PAGE_BY_ID_QUERY = `
54
54
  blocks {
55
55
  id
56
56
  type
57
- content
57
+ content: contentWithShared
58
58
  settings
59
59
  style
60
60
  advanced
@@ -71,7 +71,7 @@ export const PAGE_BY_ID_QUERY = `
71
71
  publishedBlocks {
72
72
  id
73
73
  type
74
- content
74
+ content: contentWithShared
75
75
  settings
76
76
  style
77
77
  advanced
@@ -87,14 +87,14 @@ export const PAGE_BY_ID_QUERY = `
87
87
  }
88
88
  layoutBlocks {
89
89
  id type region order isActive
90
- content settings style advanced
90
+ content: contentWithShared settings style advanced
91
91
  translations defaultLanguage
92
92
  metadata { createdAt updatedAt createdBy version }
93
93
  blockVersion
94
94
  }
95
95
  publishedLayoutBlocks {
96
96
  id type region order isActive
97
- content settings style advanced
97
+ content: contentWithShared settings style advanced
98
98
  translations defaultLanguage
99
99
  metadata { createdAt updatedAt createdBy version }
100
100
  blockVersion
@@ -358,7 +358,7 @@ export const SAVE_PAGE_MUTATION = `
358
358
  blocks {
359
359
  id
360
360
  type
361
- content
361
+ content: contentWithShared
362
362
  settings
363
363
  style
364
364
  advanced
@@ -402,7 +402,7 @@ export const DEV_DRAFT_QUERY = `
402
402
  blocks {
403
403
  id
404
404
  type
405
- content
405
+ content: contentWithShared
406
406
  settings
407
407
  style
408
408
  advanced
@@ -601,7 +601,7 @@ export const PUBLISH_PAGE_CONTENT_MUTATION = `
601
601
  blocks {
602
602
  id
603
603
  type
604
- content
604
+ content: contentWithShared
605
605
  settings
606
606
  style
607
607
  advanced
@@ -641,7 +641,7 @@ export const REVERT_CONTENT_TO_PUBLISHED_MUTATION = `
641
641
  hasUnpublishedLayoutChanges
642
642
  updatedAt
643
643
  blocks {
644
- id type content settings style advanced
644
+ id type content: contentWithShared settings style advanced
645
645
  translations defaultLanguage blockVersion
646
646
  }
647
647
  } }
@@ -675,7 +675,7 @@ export const UPDATE_PAGE_LAYOUT_MUTATION = `
675
675
  updatedAt
676
676
  layoutBlocks {
677
677
  id type region order isActive
678
- content settings style advanced
678
+ content: contentWithShared settings style advanced
679
679
  translations defaultLanguage
680
680
  metadata { createdAt updatedAt createdBy version }
681
681
  blockVersion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cmssy/mcp-server",
3
- "version": "0.66.0",
4
- "description": "MCP server for Cmssy CMS enables AI-driven page creation and management",
3
+ "version": "0.68.0",
4
+ "description": "MCP server for Cmssy CMS \u2014 enables AI-driven page creation and management",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "cmssy-mcp": "./dist/index.js"