multisite-cms-mcp 1.7.2 → 1.7.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.
Files changed (2) hide show
  1. package/dist/index.js +11 -11
  2. package/package.json +1 -1
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
  }
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.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": {