multisite-cms-mcp 1.7.2 → 1.7.4

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
@@ -650,26 +650,26 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
650
650
  }
651
651
  });
652
652
  async function main() {
653
- // Check authentication BEFORE connecting to transport
653
+ const transport = new stdio_js_1.StdioServerTransport();
654
+ // Check authentication status (non-blocking)
654
655
  const { getValidCredentials } = await Promise.resolve().then(() => __importStar(require('./lib/credentials')));
655
656
  const credentials = await getValidCredentials();
656
657
  if (!credentials) {
657
- // No valid credentials - trigger device flow
658
+ // No valid credentials - start device flow in background
658
659
  const { startDeviceFlow } = await Promise.resolve().then(() => __importStar(require('./lib/device-flow')));
659
660
  console.error('FastMode MCP Server - Authentication Required');
660
- const result = await startDeviceFlow();
661
- console.error(result);
662
- // Verify auth succeeded
663
- const newCreds = await getValidCredentials();
664
- if (!newCreds) {
665
- console.error('Authentication failed. Server will start but tools requiring auth will fail.');
666
- }
661
+ console.error('Starting authentication flow...');
662
+ // Start auth in background (don't block server startup)
663
+ startDeviceFlow().then(result => {
664
+ console.error(result);
665
+ }).catch(err => {
666
+ console.error('Authentication error:', err);
667
+ });
667
668
  }
668
669
  else {
669
670
  console.error(`FastMode MCP Server - Authenticated as ${credentials.email}`);
670
671
  }
671
- // Now connect to transport
672
- const transport = new stdio_js_1.StdioServerTransport();
672
+ // Connect to transport immediately so Cursor doesn't timeout
673
673
  await server.connect(transport);
674
674
  console.error('FastMode MCP Server running on stdio');
675
675
  }
@@ -1 +1 @@
1
- {"version":3,"file":"device-flow.d.ts","sourceRoot":"","sources":["../../src/lib/device-flow.ts"],"names":[],"mappings":"AA0DA;;;GAGG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CA+FvD;AA0ED;;;GAGG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC;IAAE,aAAa,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAuBhG"}
1
+ {"version":3,"file":"device-flow.d.ts","sourceRoot":"","sources":["../../src/lib/device-flow.ts"],"names":[],"mappings":"AA0DA;;;GAGG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAqGvD;AA0ED;;;GAGG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC;IAAE,aAAa,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAuBhG"}
@@ -130,6 +130,9 @@ ${authResponse.verification_uri}
130
130
 
131
131
  And enter this code: ${authResponse.user_code}
132
132
 
133
+ **Don't have a Fast Mode account?**
134
+ Sign up at https://fastmode.ai first, then return here.
135
+
133
136
  Waiting for authorization...
134
137
  `);
135
138
  // Start polling
@@ -151,7 +154,10 @@ You can now use FastMode MCP tools.
151
154
 
152
155
  ${pollResult.error || 'Authorization timed out or was denied.'}
153
156
 
154
- Please try again with \`list_projects\` or \`get_tenant_schema\`.
157
+ **Don't have an account?**
158
+ Sign up at https://fastmode.ai and then try again.
159
+
160
+ **To retry:** Call any authenticated tool like \`list_projects\` to start a new auth flow.
155
161
  `;
156
162
  }
157
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multisite-cms-mcp",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
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": {