multisite-cms-mcp 1.5.1 → 1.5.3
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
CHANGED
|
@@ -194,6 +194,7 @@ When you validate a template with a project ID, the tool will:
|
|
|
194
194
|
| `datetime` | Date + time picker |
|
|
195
195
|
| `image` | Image uploads (heroImage, thumbnail, photo) |
|
|
196
196
|
| `url` | Links (website, social profiles) |
|
|
197
|
+
| `videoEmbed` | Video URLs (YouTube, Vimeo, Wistia, Loom) |
|
|
197
198
|
| `email` | Email addresses |
|
|
198
199
|
| `select` | Single dropdown choice (category, status) |
|
|
199
200
|
| `multiSelect` | Multiple dropdown choices (tags) |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-field-types.d.ts","sourceRoot":"","sources":["../../src/tools/get-field-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"get-field-types.d.ts","sourceRoot":"","sources":["../../src/tools/get-field-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,EAqE5C,CAAC;AAEF;;;GAGG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CA0CrD"}
|
|
@@ -48,14 +48,19 @@ exports.AVAILABLE_FIELD_TYPES = [
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
value: 'image',
|
|
51
|
-
label: 'Image
|
|
52
|
-
description: 'URL to
|
|
51
|
+
label: 'Image',
|
|
52
|
+
description: 'Image file or URL. Supports direct file uploads to storage. Use for photos, thumbnails, hero images.'
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
value: 'url',
|
|
56
56
|
label: 'URL',
|
|
57
57
|
description: 'Web link. Use for external links, social media URLs.'
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
value: 'videoEmbed',
|
|
61
|
+
label: 'Video Embed',
|
|
62
|
+
description: 'YouTube, Vimeo, Wistia, or Loom URL. Use {{#videoEmbed fieldName}}{{/videoEmbed}} helper in templates for responsive iframes.'
|
|
63
|
+
},
|
|
59
64
|
{
|
|
60
65
|
value: 'email',
|
|
61
66
|
label: 'Email',
|
|
@@ -148,7 +148,7 @@ This schema is specific to this project and includes all collections with their
|
|
|
148
148
|
**Field Table Format:**
|
|
149
149
|
- **Field Name** - Display name for the field
|
|
150
150
|
- **Token** - The exact token to use in templates (use triple braces for richText)
|
|
151
|
-
- **Type** - Field type (text, richText, image, url, boolean, number, date, select, relation)
|
|
151
|
+
- **Type** - Field type (text, richText, image, url, videoEmbed, boolean, number, date, select, relation)
|
|
152
152
|
- **Description** - Help text explaining what the field is for
|
|
153
153
|
|
|
154
154
|
---
|
|
@@ -121,8 +121,8 @@ Tip: Use a JSON validator (like jsonlint.com) to find the exact error location.`
|
|
|
121
121
|
const customCollections = new Set();
|
|
122
122
|
if (templates) {
|
|
123
123
|
// All keys must match the unified format: {slug}Index, {slug}Detail, {slug}IndexPath, {slug}DetailPath
|
|
124
|
-
const VALID_KEY_PATTERN = /^[a-z][a-zA-Z0-
|
|
125
|
-
const KEY_PARTS_PATTERN = /^([a-z][a-zA-Z0-
|
|
124
|
+
const VALID_KEY_PATTERN = /^[a-z][a-zA-Z0-9_]*(Index|Detail|IndexPath|DetailPath)$/;
|
|
125
|
+
const KEY_PARTS_PATTERN = /^([a-z][a-zA-Z0-9_]*)(Index|Detail|IndexPath|DetailPath)$/;
|
|
126
126
|
for (const key of Object.keys(templates)) {
|
|
127
127
|
if (!VALID_KEY_PATTERN.test(key)) {
|
|
128
128
|
// Provide helpful error message with suggestion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "multisite-cms-mcp",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "MCP server for Fast Mode CMS. Convert websites, validate packages, and deploy directly to Fast Mode. Includes authentication, project creation, schema sync, and one-click deployment.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|