circuit-mcp 1.0.6 → 1.0.7

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/package.json +1 -1
  2. package/src/auth.js +20 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "circuit-mcp",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Circuit MCP server for Cursor and Claude Code",
5
5
  "type": "module",
6
6
  "bin": {
package/src/auth.js CHANGED
@@ -100,12 +100,14 @@ export async function authenticate() {
100
100
  // Store token
101
101
  await storeToken(token);
102
102
 
103
- // Send success page
103
+ // Send success page and close after response is fully sent
104
104
  res.writeHead(200, { 'Content-Type': 'text/html' });
105
- res.end(getSuccessPage());
106
-
107
- server.close();
108
- resolve(token);
105
+ res.end(getSuccessPage(), () => {
106
+ setTimeout(() => {
107
+ server.close();
108
+ resolve(token);
109
+ }, 100);
110
+ });
109
111
  }
110
112
  });
111
113
 
@@ -139,47 +141,46 @@ function getSuccessPage() {
139
141
  * { margin: 0; padding: 0; box-sizing: border-box; }
140
142
  body {
141
143
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
142
- background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
144
+ background: #F5F1EA;
143
145
  min-height: 100vh;
144
146
  display: flex;
145
147
  align-items: center;
146
148
  justify-content: center;
147
- color: white;
149
+ color: #1C1A18;
148
150
  }
149
151
  .container {
150
152
  text-align: center;
151
153
  padding: 48px;
152
154
  }
153
155
  .icon {
154
- font-size: 64px;
156
+ font-size: 48px;
155
157
  margin-bottom: 24px;
156
158
  }
157
159
  h1 {
158
- font-size: 32px;
160
+ font-size: 24px;
159
161
  font-weight: 600;
160
162
  margin-bottom: 16px;
161
- color: #6366F1;
162
163
  }
163
164
  p {
164
- font-size: 18px;
165
- color: rgba(255,255,255,0.7);
165
+ font-size: 16px;
166
+ color: rgba(28,26,24,0.6);
166
167
  margin-bottom: 8px;
167
168
  }
168
169
  .hint {
169
- margin-top: 32px;
170
+ margin-top: 24px;
170
171
  font-size: 14px;
171
- color: rgba(255,255,255,0.5);
172
+ color: rgba(28,26,24,0.4);
172
173
  }
173
174
  </style>
174
175
  </head>
175
176
  <body>
176
177
  <div class="container">
177
- <div class="icon">⚡</div>
178
- <h1>Connected to Circuit!</h1>
179
- <p>You can close this window and return to your terminal.</p>
180
- <p class="hint">Circuit is now ready to use in Cursor or Claude Code.</p>
178
+ <div class="icon">◉</div>
179
+ <h1>Connected to Circuit</h1>
180
+ <p>You can close this window.</p>
181
+ <p class="hint">Return to your terminal to continue.</p>
181
182
  </div>
182
- <script>setTimeout(() => window.close(), 3000);</script>
183
+ <script>setTimeout(() => window.close(), 2000);</script>
183
184
  </body>
184
185
  </html>`;
185
186
  }