multisite-cms-mcp 1.5.10 → 1.5.11

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/dist/index.js CHANGED
@@ -132,7 +132,7 @@ const TOOLS = [
132
132
  },
133
133
  {
134
134
  name: 'get_conversion_guide',
135
- description: 'Get the complete website conversion guide. Use this at the start of a conversion project to understand all requirements.',
135
+ description: 'Get the website conversion guide. CRITICAL: You MUST follow the steps in order. Start by calling list_projects to get a projectId BEFORE building any templates. Skipping this step will cause deployment failures.',
136
136
  inputSchema: {
137
137
  type: 'object',
138
138
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"get-conversion-guide.d.ts","sourceRoot":"","sources":["../../src/tools/get-conversion-guide.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GAAG,MAAM,GAAG,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,iBAAiB,CAAC;AAwmCtK;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CA+D1E"}
1
+ {"version":3,"file":"get-conversion-guide.d.ts","sourceRoot":"","sources":["../../src/tools/get-conversion-guide.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GAAG,MAAM,GAAG,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,iBAAiB,CAAC;AAooCtK;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAgF1E"}
@@ -2,9 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getConversionGuide = getConversionGuide;
4
4
  const SECTIONS = {
5
- first_steps: `# REQUIRED FIRST STEPS (Do These Before Building the Package)
5
+ first_steps: `# REQUIRED FIRST STEPS
6
6
 
7
- **IMPORTANT:** Before converting any website, you MUST establish the target project first. This determines the schema and ensures you're deploying to the correct location.
7
+ ## STOP. DO NOT BUILD ANYTHING YET.
8
+
9
+ Before writing ANY HTML, templates, or manifest.json, you MUST:
10
+
11
+ 1. **Determine which project this is for** - Call \`list_projects\`
12
+ 2. **Ask the user** - "Which project?" or "What should I name your new project?"
13
+ 3. **Get a projectId** - Either from existing project or from \`create_site\`
14
+ 4. **Get the schema** - Call \`get_tenant_schema\` to know what fields exist
15
+
16
+ **Skipping these steps WILL cause deployment failures.**
17
+
18
+ ---
8
19
 
9
20
  ## Step 1: Check for Existing Projects
10
21
 
@@ -49,6 +60,23 @@ Based on what \`list_projects\` returns:
49
60
 
50
61
  ---
51
62
 
63
+ ## CHECKPOINT: Before You Continue
64
+
65
+ **STOP.** Confirm you have completed these steps:
66
+
67
+ | Requirement | How to Get It |
68
+ |-------------|---------------|
69
+ | projectId | From \`list_projects\` (existing) or \`create_site\` (new) |
70
+ | Project name confirmed | Asked the user |
71
+ | Schema loaded | Called \`get_tenant_schema(projectId)\` |
72
+
73
+ **If you don't have a projectId, DO NOT PROCEED.** Go back to Step 1.
74
+
75
+ The projectId is REQUIRED for:
76
+ - \`get_tenant_schema\` - to get existing field names
77
+ - \`deploy_package\` - to upload the site
78
+ - \`sync_schema\` - to create new collections
79
+
52
80
  `,
53
81
  analysis: `# Phase 1: Website Analysis (MANDATORY)
54
82
 
@@ -1122,6 +1150,23 @@ async function getConversionGuide(section) {
1122
1150
  if (section === 'full') {
1123
1151
  return `# Complete Website Conversion Guide
1124
1152
 
1153
+ ---
1154
+
1155
+ ## WORKFLOW OVERVIEW (Follow This Order)
1156
+
1157
+ | Step | Action | Tools to Use |
1158
+ |------|--------|--------------|
1159
+ | 1. SETUP | Call list_projects → Ask user for project → Get projectId | \`list_projects\`, \`create_site\` |
1160
+ | 2. SCHEMA | Get existing schema OR plan new collections | \`get_tenant_schema\`, \`sync_schema\` |
1161
+ | 3. ANALYZE | Map URLs, identify collections, document assets | (manual) |
1162
+ | 4. BUILD | Create manifest.json, pages/, templates/, public/ | \`get_example\` |
1163
+ | 5. VALIDATE | Check all files before deploying | \`validate_manifest\`, \`validate_template\`, \`validate_package\` |
1164
+ | 6. DEPLOY | Upload package to project | \`deploy_package\` |
1165
+
1166
+ **DO NOT skip steps. You MUST have a projectId before you can deploy.**
1167
+
1168
+ ---
1169
+
1125
1170
  ${SECTIONS.first_steps}
1126
1171
  ---
1127
1172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multisite-cms-mcp",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
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": {