@cmssy/mcp-server 0.1.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.
- package/README.md +102 -0
- package/dist/graphql-client.d.ts +14 -0
- package/dist/graphql-client.d.ts.map +1 -0
- package/dist/graphql-client.js +88 -0
- package/dist/graphql-client.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/queries.d.ts +15 -0
- package/dist/queries.d.ts.map +1 -0
- package/dist/queries.js +391 -0
- package/dist/queries.js.map +1 -0
- package/dist/server.d.ts +4 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +787 -0
- package/dist/server.js.map +1 -0
- package/dist/types.d.ts +128 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +38 -0
package/dist/queries.js
ADDED
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
// ─── Page Queries ────────────────────────────────────────────
|
|
2
|
+
export const PAGES_QUERY = `
|
|
3
|
+
query Pages {
|
|
4
|
+
pages {
|
|
5
|
+
id
|
|
6
|
+
name
|
|
7
|
+
slug
|
|
8
|
+
description
|
|
9
|
+
displayName
|
|
10
|
+
published
|
|
11
|
+
publishedAt
|
|
12
|
+
hasUnpublishedChanges
|
|
13
|
+
pageType
|
|
14
|
+
parentId
|
|
15
|
+
order
|
|
16
|
+
createdAt
|
|
17
|
+
updatedAt
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
export const PAGE_BY_ID_QUERY = `
|
|
22
|
+
query PageById($id: ID!) {
|
|
23
|
+
pageById(id: $id) {
|
|
24
|
+
id
|
|
25
|
+
name
|
|
26
|
+
slug
|
|
27
|
+
description
|
|
28
|
+
displayName
|
|
29
|
+
seoTitle
|
|
30
|
+
seoDescription
|
|
31
|
+
seoKeywords
|
|
32
|
+
published
|
|
33
|
+
publishedAt
|
|
34
|
+
hasUnpublishedChanges
|
|
35
|
+
pageType
|
|
36
|
+
parentId
|
|
37
|
+
order
|
|
38
|
+
blocks {
|
|
39
|
+
id
|
|
40
|
+
type
|
|
41
|
+
content
|
|
42
|
+
settings
|
|
43
|
+
style
|
|
44
|
+
advanced
|
|
45
|
+
translations
|
|
46
|
+
defaultLanguage
|
|
47
|
+
metadata {
|
|
48
|
+
createdAt
|
|
49
|
+
updatedAt
|
|
50
|
+
createdBy
|
|
51
|
+
version
|
|
52
|
+
}
|
|
53
|
+
blockVersion
|
|
54
|
+
}
|
|
55
|
+
publishedBlocks {
|
|
56
|
+
id
|
|
57
|
+
type
|
|
58
|
+
content
|
|
59
|
+
settings
|
|
60
|
+
style
|
|
61
|
+
advanced
|
|
62
|
+
translations
|
|
63
|
+
defaultLanguage
|
|
64
|
+
metadata {
|
|
65
|
+
createdAt
|
|
66
|
+
updatedAt
|
|
67
|
+
createdBy
|
|
68
|
+
version
|
|
69
|
+
}
|
|
70
|
+
blockVersion
|
|
71
|
+
}
|
|
72
|
+
layoutBlocks {
|
|
73
|
+
id type position order isActive
|
|
74
|
+
content settings style advanced
|
|
75
|
+
translations defaultLanguage
|
|
76
|
+
metadata { createdAt updatedAt createdBy version }
|
|
77
|
+
blockVersion
|
|
78
|
+
}
|
|
79
|
+
publishedLayoutBlocks {
|
|
80
|
+
id type position order isActive
|
|
81
|
+
content settings style advanced
|
|
82
|
+
translations defaultLanguage
|
|
83
|
+
metadata { createdAt updatedAt createdBy version }
|
|
84
|
+
blockVersion
|
|
85
|
+
}
|
|
86
|
+
layoutOverrides { position action blockId }
|
|
87
|
+
inheritsLayout
|
|
88
|
+
createdAt
|
|
89
|
+
updatedAt
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`;
|
|
93
|
+
export const PAGE_BY_SLUG_QUERY = `
|
|
94
|
+
query Page($slug: String!) {
|
|
95
|
+
page(slug: $slug) {
|
|
96
|
+
id
|
|
97
|
+
name
|
|
98
|
+
slug
|
|
99
|
+
description
|
|
100
|
+
displayName
|
|
101
|
+
seoTitle
|
|
102
|
+
seoDescription
|
|
103
|
+
seoKeywords
|
|
104
|
+
published
|
|
105
|
+
publishedAt
|
|
106
|
+
hasUnpublishedChanges
|
|
107
|
+
pageType
|
|
108
|
+
parentId
|
|
109
|
+
order
|
|
110
|
+
blocks {
|
|
111
|
+
id
|
|
112
|
+
type
|
|
113
|
+
content
|
|
114
|
+
settings
|
|
115
|
+
style
|
|
116
|
+
advanced
|
|
117
|
+
translations
|
|
118
|
+
defaultLanguage
|
|
119
|
+
metadata {
|
|
120
|
+
createdAt
|
|
121
|
+
updatedAt
|
|
122
|
+
createdBy
|
|
123
|
+
version
|
|
124
|
+
}
|
|
125
|
+
blockVersion
|
|
126
|
+
}
|
|
127
|
+
publishedBlocks {
|
|
128
|
+
id
|
|
129
|
+
type
|
|
130
|
+
content
|
|
131
|
+
settings
|
|
132
|
+
style
|
|
133
|
+
advanced
|
|
134
|
+
translations
|
|
135
|
+
defaultLanguage
|
|
136
|
+
metadata {
|
|
137
|
+
createdAt
|
|
138
|
+
updatedAt
|
|
139
|
+
createdBy
|
|
140
|
+
version
|
|
141
|
+
}
|
|
142
|
+
blockVersion
|
|
143
|
+
}
|
|
144
|
+
layoutBlocks {
|
|
145
|
+
id type position order isActive
|
|
146
|
+
content settings style advanced
|
|
147
|
+
translations defaultLanguage
|
|
148
|
+
metadata { createdAt updatedAt createdBy version }
|
|
149
|
+
blockVersion
|
|
150
|
+
}
|
|
151
|
+
publishedLayoutBlocks {
|
|
152
|
+
id type position order isActive
|
|
153
|
+
content settings style advanced
|
|
154
|
+
translations defaultLanguage
|
|
155
|
+
metadata { createdAt updatedAt createdBy version }
|
|
156
|
+
blockVersion
|
|
157
|
+
}
|
|
158
|
+
layoutOverrides { position action blockId }
|
|
159
|
+
inheritsLayout
|
|
160
|
+
createdAt
|
|
161
|
+
updatedAt
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
`;
|
|
165
|
+
// ─── Workspace Block Queries ─────────────────────────────────
|
|
166
|
+
export const WORKSPACE_BLOCKS_QUERY = `
|
|
167
|
+
query WorkspaceBlocks {
|
|
168
|
+
workspaceBlocks {
|
|
169
|
+
id
|
|
170
|
+
blockType
|
|
171
|
+
name
|
|
172
|
+
description
|
|
173
|
+
icon
|
|
174
|
+
category
|
|
175
|
+
layoutPosition
|
|
176
|
+
interactive
|
|
177
|
+
schemaFields {
|
|
178
|
+
key
|
|
179
|
+
type
|
|
180
|
+
label
|
|
181
|
+
defaultValue
|
|
182
|
+
placeholder
|
|
183
|
+
required
|
|
184
|
+
helperText
|
|
185
|
+
options
|
|
186
|
+
group
|
|
187
|
+
itemSchema
|
|
188
|
+
}
|
|
189
|
+
defaultContent
|
|
190
|
+
version
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
`;
|
|
194
|
+
export const WORKSPACE_BLOCK_BY_TYPE_QUERY = `
|
|
195
|
+
query WorkspaceBlockByType($blockType: String!) {
|
|
196
|
+
workspaceBlockByType(blockType: $blockType) {
|
|
197
|
+
id
|
|
198
|
+
blockType
|
|
199
|
+
name
|
|
200
|
+
description
|
|
201
|
+
icon
|
|
202
|
+
category
|
|
203
|
+
layoutPosition
|
|
204
|
+
interactive
|
|
205
|
+
schemaFields {
|
|
206
|
+
key
|
|
207
|
+
type
|
|
208
|
+
label
|
|
209
|
+
defaultValue
|
|
210
|
+
placeholder
|
|
211
|
+
required
|
|
212
|
+
helperText
|
|
213
|
+
options
|
|
214
|
+
group
|
|
215
|
+
itemSchema
|
|
216
|
+
}
|
|
217
|
+
defaultContent
|
|
218
|
+
version
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
`;
|
|
222
|
+
// ─── Site Config Queries ─────────────────────────────────────
|
|
223
|
+
export const SITE_CONFIG_QUERY = `
|
|
224
|
+
query SiteConfig {
|
|
225
|
+
siteConfig {
|
|
226
|
+
id
|
|
227
|
+
defaultLanguage
|
|
228
|
+
enabledLanguages
|
|
229
|
+
siteName
|
|
230
|
+
enabledFeatures
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
`;
|
|
234
|
+
// ─── Workspace Queries ───────────────────────────────────────
|
|
235
|
+
export const CURRENT_WORKSPACE_QUERY = `
|
|
236
|
+
query CurrentWorkspace {
|
|
237
|
+
currentWorkspace {
|
|
238
|
+
id
|
|
239
|
+
name
|
|
240
|
+
slug
|
|
241
|
+
plan
|
|
242
|
+
limits {
|
|
243
|
+
maxPages
|
|
244
|
+
maxUsers
|
|
245
|
+
maxStorageMb
|
|
246
|
+
maxAiTokensMonth
|
|
247
|
+
maxWorkspacesOwned
|
|
248
|
+
canUseCustomDomain
|
|
249
|
+
canRemoveBranding
|
|
250
|
+
canUseCustomScripts
|
|
251
|
+
maxCustomBlocks
|
|
252
|
+
maxCustomBlocksStorageMb
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
`;
|
|
257
|
+
// ─── Media Queries ───────────────────────────────────────────
|
|
258
|
+
export const MEDIA_ASSETS_QUERY = `
|
|
259
|
+
query MediaAssets($limit: Int, $offset: Int) {
|
|
260
|
+
mediaAssets(limit: $limit, offset: $offset) {
|
|
261
|
+
items {
|
|
262
|
+
id
|
|
263
|
+
url
|
|
264
|
+
filename
|
|
265
|
+
type
|
|
266
|
+
mimeType
|
|
267
|
+
size
|
|
268
|
+
width
|
|
269
|
+
height
|
|
270
|
+
alt
|
|
271
|
+
tags
|
|
272
|
+
}
|
|
273
|
+
total
|
|
274
|
+
hasMore
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
`;
|
|
278
|
+
// ─── Page Mutations ──────────────────────────────────────────
|
|
279
|
+
export const SAVE_PAGE_MUTATION = `
|
|
280
|
+
mutation SavePage($input: SavePageInput!) {
|
|
281
|
+
savePage(input: $input) {
|
|
282
|
+
id
|
|
283
|
+
name
|
|
284
|
+
slug
|
|
285
|
+
description
|
|
286
|
+
displayName
|
|
287
|
+
seoTitle
|
|
288
|
+
seoDescription
|
|
289
|
+
seoKeywords
|
|
290
|
+
published
|
|
291
|
+
hasUnpublishedChanges
|
|
292
|
+
pageType
|
|
293
|
+
parentId
|
|
294
|
+
blocks {
|
|
295
|
+
id
|
|
296
|
+
type
|
|
297
|
+
content
|
|
298
|
+
settings
|
|
299
|
+
style
|
|
300
|
+
advanced
|
|
301
|
+
translations
|
|
302
|
+
defaultLanguage
|
|
303
|
+
metadata {
|
|
304
|
+
createdAt
|
|
305
|
+
updatedAt
|
|
306
|
+
createdBy
|
|
307
|
+
version
|
|
308
|
+
}
|
|
309
|
+
blockVersion
|
|
310
|
+
}
|
|
311
|
+
createdAt
|
|
312
|
+
updatedAt
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
`;
|
|
316
|
+
export const UPDATE_PAGE_SETTINGS_MUTATION = `
|
|
317
|
+
mutation UpdatePageSettings($input: UpdatePageSettingsInput!) {
|
|
318
|
+
updatePageSettings(input: $input) {
|
|
319
|
+
id
|
|
320
|
+
name
|
|
321
|
+
slug
|
|
322
|
+
description
|
|
323
|
+
displayName
|
|
324
|
+
seoTitle
|
|
325
|
+
seoDescription
|
|
326
|
+
seoKeywords
|
|
327
|
+
pageType
|
|
328
|
+
parentId
|
|
329
|
+
updatedAt
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
`;
|
|
333
|
+
export const TOGGLE_PUBLISH_MUTATION = `
|
|
334
|
+
mutation TogglePublish($id: ID!) {
|
|
335
|
+
togglePublish(id: $id) {
|
|
336
|
+
id
|
|
337
|
+
published
|
|
338
|
+
publishedAt
|
|
339
|
+
hasUnpublishedChanges
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
`;
|
|
343
|
+
export const PUBLISH_PAGE_MUTATION = `
|
|
344
|
+
mutation PublishPage($id: ID!, $blocks: [BlockDataInput!]!) {
|
|
345
|
+
publishPage(id: $id, blocks: $blocks) {
|
|
346
|
+
id
|
|
347
|
+
published
|
|
348
|
+
publishedAt
|
|
349
|
+
hasUnpublishedChanges
|
|
350
|
+
blocks {
|
|
351
|
+
id
|
|
352
|
+
type
|
|
353
|
+
content
|
|
354
|
+
settings
|
|
355
|
+
style
|
|
356
|
+
advanced
|
|
357
|
+
translations
|
|
358
|
+
defaultLanguage
|
|
359
|
+
metadata {
|
|
360
|
+
createdAt
|
|
361
|
+
updatedAt
|
|
362
|
+
createdBy
|
|
363
|
+
version
|
|
364
|
+
}
|
|
365
|
+
blockVersion
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
`;
|
|
370
|
+
export const REMOVE_PAGE_MUTATION = `
|
|
371
|
+
mutation RemovePage($id: ID!) {
|
|
372
|
+
removePage(id: $id)
|
|
373
|
+
}
|
|
374
|
+
`;
|
|
375
|
+
export const UPDATE_PAGE_LAYOUT_MUTATION = `
|
|
376
|
+
mutation UpdatePageLayout($input: UpdatePageLayoutInput!) {
|
|
377
|
+
updatePageLayout(input: $input) {
|
|
378
|
+
id
|
|
379
|
+
layoutBlocks {
|
|
380
|
+
id type position order isActive
|
|
381
|
+
content settings style advanced
|
|
382
|
+
translations defaultLanguage
|
|
383
|
+
metadata { createdAt updatedAt createdBy version }
|
|
384
|
+
blockVersion
|
|
385
|
+
}
|
|
386
|
+
layoutOverrides { position action blockId }
|
|
387
|
+
inheritsLayout
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
`;
|
|
391
|
+
//# sourceMappingURL=queries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../src/queries.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;CAkB1B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE/B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