multisite-cms-mcp 1.2.0 → 1.2.1
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 +78 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,8 +35,9 @@ These tools work without authentication — perfect for converting and validatin
|
|
|
35
35
|
| Tool | Description |
|
|
36
36
|
|------|-------------|
|
|
37
37
|
| `get_schema` | Get the complete CMS schema with all collections and fields |
|
|
38
|
+
| `get_field_types` | Get available field types for creating custom fields |
|
|
38
39
|
| `validate_manifest` | Validate your manifest.json file |
|
|
39
|
-
| `validate_template` | Check HTML templates for correct token usage |
|
|
40
|
+
| `validate_template` | Check HTML templates for correct token usage (with optional schema validation) |
|
|
40
41
|
| `validate_package` | Validate complete package structure |
|
|
41
42
|
| `get_example` | Get example code for common patterns |
|
|
42
43
|
| `get_conversion_guide` | Step-by-step website conversion guide |
|
|
@@ -51,6 +52,7 @@ These tools require a Fast Mode account. The MCP server will automatically open
|
|
|
51
52
|
| `get_tenant_schema` | Get schema for a specific project (including custom fields) |
|
|
52
53
|
| `create_site` | Create a new Fast Mode project |
|
|
53
54
|
| `deploy_package` | Deploy a website package to Fast Mode |
|
|
55
|
+
| `sync_schema` | Create collections and fields in your project |
|
|
54
56
|
|
|
55
57
|
---
|
|
56
58
|
|
|
@@ -115,6 +117,75 @@ Your site will be available at `https://your-site.fastmode.ai` and you can manag
|
|
|
115
117
|
|
|
116
118
|
---
|
|
117
119
|
|
|
120
|
+
## Schema Sync (New in v1.2.0)
|
|
121
|
+
|
|
122
|
+
The MCP server can automatically create collections and fields in your Fast Mode project. This is useful when your templates use custom fields that don't exist yet.
|
|
123
|
+
|
|
124
|
+
### Workflow
|
|
125
|
+
|
|
126
|
+
1. **Validate template with project context:**
|
|
127
|
+
```
|
|
128
|
+
"Validate my blog_post.html template against my Fast Mode project"
|
|
129
|
+
```
|
|
130
|
+
If fields are missing, the tool provides instructions.
|
|
131
|
+
|
|
132
|
+
2. **Get available field types:**
|
|
133
|
+
```
|
|
134
|
+
"What field types can I create in Fast Mode?"
|
|
135
|
+
```
|
|
136
|
+
Returns: text, richText, number, boolean, date, datetime, image, url, email, select, multiSelect, relation
|
|
137
|
+
|
|
138
|
+
3. **Create missing fields:**
|
|
139
|
+
```
|
|
140
|
+
"Add a heroImage (image) and category (select) field to my blogs collection"
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Example: Adding Custom Fields
|
|
144
|
+
|
|
145
|
+
```json
|
|
146
|
+
{
|
|
147
|
+
"projectId": "my-project",
|
|
148
|
+
"fieldsToAdd": [
|
|
149
|
+
{
|
|
150
|
+
"collectionSlug": "blogs",
|
|
151
|
+
"isBuiltin": true,
|
|
152
|
+
"fields": [
|
|
153
|
+
{ "slug": "heroImage", "name": "Hero Image", "type": "image" },
|
|
154
|
+
{ "slug": "category", "name": "Category", "type": "select", "options": "Tech,Business,Lifestyle" }
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Example: Creating a Custom Collection
|
|
162
|
+
|
|
163
|
+
```json
|
|
164
|
+
{
|
|
165
|
+
"projectId": "my-project",
|
|
166
|
+
"collections": [
|
|
167
|
+
{
|
|
168
|
+
"slug": "products",
|
|
169
|
+
"name": "Products",
|
|
170
|
+
"nameSingular": "Product",
|
|
171
|
+
"fields": [
|
|
172
|
+
{ "slug": "price", "name": "Price", "type": "number" },
|
|
173
|
+
{ "slug": "description", "name": "Description", "type": "richText" },
|
|
174
|
+
{ "slug": "image", "name": "Product Image", "type": "image" }
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**Features:**
|
|
182
|
+
- ✅ Validates all field types before creating
|
|
183
|
+
- ✅ Skips duplicates automatically
|
|
184
|
+
- ✅ Works with both builtin and custom collections
|
|
185
|
+
- ✅ Reports detailed results (created/skipped)
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
118
189
|
## Example Usage
|
|
119
190
|
|
|
120
191
|
```
|
|
@@ -124,6 +195,12 @@ Your site will be available at `https://your-site.fastmode.ai` and you can manag
|
|
|
124
195
|
# Validate a package
|
|
125
196
|
"Validate my manifest.json using validate_manifest"
|
|
126
197
|
|
|
198
|
+
# Validate template against actual project schema
|
|
199
|
+
"Validate my blog_post.html template against my 'My Portfolio' project"
|
|
200
|
+
|
|
201
|
+
# Create missing fields
|
|
202
|
+
"Add a heroImage field (image type) to the blogs collection in my project"
|
|
203
|
+
|
|
127
204
|
# Deploy to existing project
|
|
128
205
|
"Deploy ./my-site.zip to my Fast Mode project"
|
|
129
206
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "multisite-cms-mcp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
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": {
|