@cmssy/mcp-server 0.82.0 → 0.83.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=form-parity.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-parity.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/form-parity.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,82 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { dirname, resolve } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ import { describe, expect, it } from "vitest";
5
+ import { buildSchema, isInputObjectType, isObjectType, parse, visit, } from "graphql";
6
+ import { AI_TOOLS } from "@cmssy/ai-tools";
7
+ import { FORM_BY_ID_QUERY } from "../queries.js";
8
+ const root = resolve(dirname(fileURLToPath(import.meta.url)), "../..");
9
+ const schema = buildSchema(readFileSync(resolve(root, "schema.graphql"), "utf8"));
10
+ function inputFields(name) {
11
+ const type = schema.getType(name);
12
+ if (!isInputObjectType(type))
13
+ throw new Error(`${name} is not an input type`);
14
+ return Object.keys(type.getFields()).sort();
15
+ }
16
+ function outputFields(name) {
17
+ const type = schema.getType(name);
18
+ if (!isObjectType(type))
19
+ throw new Error(`${name} is not an object type`);
20
+ return Object.keys(type.getFields()).sort();
21
+ }
22
+ function objectShape(field) {
23
+ let current = field;
24
+ while (!current.shape) {
25
+ const next = current._def?.innerType ?? current._def?.element ?? current._def?.type;
26
+ if (!next)
27
+ throw new Error("not an object");
28
+ current = next;
29
+ }
30
+ return current.shape;
31
+ }
32
+ function toolShape(name) {
33
+ const tool = AI_TOOLS.find((t) => t.name === name);
34
+ if (!tool)
35
+ throw new Error(`${name} is not in the registry`);
36
+ return tool.inputSchema.shape;
37
+ }
38
+ function selectedUnder(query, parent) {
39
+ const names = new Set();
40
+ visit(parse(query), {
41
+ Field(node) {
42
+ if (node.name.value !== parent || !node.selectionSet)
43
+ return;
44
+ visit(node.selectionSet, {
45
+ Field(inner) {
46
+ names.add(inner.name.value);
47
+ },
48
+ });
49
+ },
50
+ });
51
+ return names;
52
+ }
53
+ describe.each([["create_form"], ["update_form"]])("%s mirrors the form input types (CMS-1943)", (toolName) => {
54
+ it("describes a field with the backend's own field keys", () => {
55
+ const field = objectShape(toolShape(toolName).fields);
56
+ expect(Object.keys(field).sort()).toEqual(inputFields("FormFieldInput"));
57
+ });
58
+ it("describes a field's validation with the backend's own keys", () => {
59
+ const field = objectShape(toolShape(toolName).fields);
60
+ expect(Object.keys(objectShape(field.validation)).sort()).toEqual(inputFields("FormFieldValidationInput"));
61
+ });
62
+ it("describes a field's option with the backend's own keys", () => {
63
+ const field = objectShape(toolShape(toolName).fields);
64
+ expect(Object.keys(objectShape(field.options)).sort()).toEqual(inputFields("FormFieldOptionInput"));
65
+ });
66
+ it("describes settings with the backend's own keys", () => {
67
+ expect(Object.keys(objectShape(toolShape(toolName).settings)).sort()).toEqual(inputFields("FormSettingsInput"));
68
+ });
69
+ });
70
+ describe("get_form reads back everything the form tools can set", () => {
71
+ it("selects every field of FormFieldDefinition", () => {
72
+ const selected = selectedUnder(FORM_BY_ID_QUERY, "fields");
73
+ const missing = outputFields("FormFieldDefinition").filter((f) => !selected.has(f));
74
+ expect(missing).toEqual([]);
75
+ });
76
+ it("selects every field of FormSettings", () => {
77
+ const selected = selectedUnder(FORM_BY_ID_QUERY, "settings");
78
+ const missing = outputFields("FormSettings").filter((f) => !selected.has(f));
79
+ expect(missing).toEqual([]);
80
+ });
81
+ });
82
+ //# sourceMappingURL=form-parity.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-parity.test.js","sourceRoot":"","sources":["../../src/__tests__/form-parity.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE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C,CACF,CAAC;AAEF,QAAQ,CAAC,uDAAuD,EAAE,GAAG,EAAE;IACrE,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,MAAM,QAAQ,GAAG,aAAa,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;QAC3D,MAAM,OAAO,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAC,MAAM,CACxD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CACxB,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC7C,MAAM,QAAQ,GAAG,aAAa,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;QAC7D,MAAM,OAAO,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,CACjD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CACxB,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/dist/queries.d.ts CHANGED
@@ -41,12 +41,12 @@ export declare const REVERT_LAYOUT_TO_PUBLISHED_MUTATION = "\n mutation RevertL
41
41
  export declare const REMOVE_PAGE_MUTATION = "\n mutation RemovePage($id: ID!) {\n page { delete(id: $id) { deleted } }\n }\n";
42
42
  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";
43
43
  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";
44
- 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";
45
- 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";
44
+ 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 requiredWhen\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";
45
+ 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 requiredWhen\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";
46
46
  export declare const FORM_SUBMISSIONS_QUERY = "\n query FormSubmissions($formId: ID, $status: String, $skip: Int, $limit: Int) {\n form {\n submissions(formId: $formId, status: $status, skip: $skip, limit: $limit) {\n submissions {\n id formId formSlug data status\n ipAddress userAgent referrer customerId\n processedAt emailSent webhookSent createdAt\n }\n total\n hasMore\n }\n }\n }\n";
47
47
  export declare const FORM_SUBMISSION_BY_ID_QUERY = "\n query FormSubmission($submissionId: ID!) {\n form {\n submission(submissionId: $submissionId) {\n id formId formSlug data status\n ipAddress userAgent referrer customerId\n processedAt emailSent webhookSent createdAt\n }\n }\n }\n";
48
- export declare const CREATE_FORM_MUTATION = "\n mutation CreateForm($input: CreateFormInput!) {\n form {\n create(input: $input) {\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";
49
- export declare const UPDATE_FORM_MUTATION = "\n mutation UpdateForm($formId: ID!, $input: UpdateFormInput!) {\n form {\n update(formId: $formId, input: $input) {\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";
48
+ export declare const CREATE_FORM_MUTATION = "\n mutation CreateForm($input: CreateFormInput!) {\n form {\n create(input: $input) {\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 requiredWhen\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";
49
+ export declare const UPDATE_FORM_MUTATION = "\n mutation UpdateForm($formId: ID!, $input: UpdateFormInput!) {\n form {\n update(formId: $formId, input: $input) {\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 requiredWhen\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";
50
50
  export declare const DELETE_FORM_MUTATION = "\n mutation DeleteForm($formId: ID!) {\n form {\n delete(formId: $formId) {\n id\n deleted\n }\n }\n }\n";
51
51
  export declare const UPDATE_FORM_SUBMISSION_STATUS_MUTATION = "\n mutation UpdateFormSubmissionStatus($submissionId: ID!, $status: String!) {\n form {\n setSubmissionStatus(submissionId: $submissionId, status: $status)\n }\n }\n";
52
52
  export declare const DELETE_FORM_SUBMISSION_MUTATION = "\n mutation DeleteFormSubmission($submissionId: ID!) {\n form {\n deleteSubmission(submissionId: $submissionId) {\n id\n deleted\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,ssDA2E5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,8OAWvC,CAAC;AAEF,eAAO,MAAM,oBAAoB,4EAIhC,CAAC;AAEF,eAAO,MAAM,0BAA0B,2KAQtC,CAAC;AAgCF,eAAO,MAAM,iBAAiB,ipBAa7B,CAAC;AAEF,eAAO,MAAM,2BAA2B,mHAQvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,4mBASvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,imBAStC,CAAC;AAEF,eAAO,MAAM,oBAAoB,wIAUhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,ggBAqB7B,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,4wBAwC9B,CAAC;AAOF,eAAO,MAAM,4BAA4B,wQAWxC,CAAC;AAEF,eAAO,MAAM,eAAe,kcAwB3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,qJAOnC,CAAC;AAEF,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4VAIrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,gWAIvC,CAAC;AAEF,eAAO,MAAM,qCAAqC,mZAMjD,CAAC;AAEF,eAAO,MAAM,qCAAqC,qZAMjD,CAAC;AAEF,eAAO,MAAM,wBAAwB,0VAIpC,CAAC;AAEF,eAAO,MAAM,WAAW,kLAavB,CAAC"}
package/dist/queries.js CHANGED
@@ -764,7 +764,7 @@ const FORM_FIELDS_FRAGMENT = `
764
764
  defaultValue
765
765
  validation { required minLength maxLength minValue maxValue pattern customMessage }
766
766
  options { value label disabled }
767
- width order showWhen
767
+ width order showWhen requiredWhen
768
768
  }
769
769
  settings {
770
770
  actionType webhookUrl emailRecipients
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/mcp-server",
3
- "version": "0.82.0",
3
+ "version": "0.83.0",
4
4
  "description": "MCP server for Cmssy CMS \u2014 enables AI-driven page creation and management",
5
5
  "mcpName": "io.github.cmssy-io/cmssy-mcp",
6
6
  "homepage": "https://cmssy.com",
@@ -29,8 +29,8 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@cmssy/ai-tools": "0.59.0",
33
- "@cmssy/types": "0.52.0",
32
+ "@cmssy/ai-tools": "0.60.0",
33
+ "@cmssy/types": "0.53.0",
34
34
  "@modelcontextprotocol/sdk": "^1.29.0",
35
35
  "zod": "^4.3.6"
36
36
  },