purmemo-mcp 2.1.0 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purmemo-mcp",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Official Model Context Protocol (MCP) server for Purmemo - Seamless OAuth authentication for your AI-powered second brain",
5
5
  "main": "src/server-oauth.js",
6
6
  "type": "module",
@@ -109,10 +109,7 @@ class OAuthManager {
109
109
  authUrl.searchParams.append('code_challenge', codeChallenge);
110
110
  authUrl.searchParams.append('code_challenge_method', 'S256');
111
111
 
112
- // Start local server for callback FIRST
113
- const authCode = await this.startCallbackServer(state);
114
-
115
- // MANUAL-FIRST: Always show the URL clearly
112
+ // MANUAL-FIRST: Show the URL BEFORE starting the server
116
113
  console.log('\n' + '═'.repeat(70));
117
114
  console.log('🔐 AUTHENTICATION REQUIRED');
118
115
  console.log('═'.repeat(70));
@@ -135,6 +132,9 @@ class OAuthManager {
135
132
  console.log('═'.repeat(70));
136
133
  console.log('');
137
134
 
135
+ // NOW start the callback server after showing instructions
136
+ const authCode = await this.startCallbackServer(state);
137
+
138
138
  // Try to open browser quietly in background (might work, might not)
139
139
  try {
140
140
  if (this.platform === 'darwin') {