autologin-mcp 1.3.1 → 1.3.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.
package/README.md CHANGED
@@ -62,7 +62,7 @@ npx autologin-mcp add
62
62
 
63
63
  Upgrade with `npx autologin-mcp@latest install`, remove with `npx autologin-mcp uninstall`. Step-by-step guide: [Getting started](docs/getting-started.md).
64
64
 
65
- Another agent? `npx autologin-mcp print-config --client codex` (or `gemini`, `cursor`, `vscode`, `claude-desktop`, `hermes`) prints its configuration. See [Agents and browser tools](docs/clients.md).
65
+ Another agent? `npx autologin-mcp print-config --client codex` (or `gemini`, `cursor`, `vscode`, `claude-desktop`, `hermes`) prints its configuration. See [Agents and browser tools](docs/clients.md). autologin-mcp is also listed in the official MCP Registry as `io.github.olgaysezgin/autologin-mcp`, and on [Glama](https://glama.ai/mcp/servers/olgaysezgin/autologin-mcp).
66
66
 
67
67
  ## Features
68
68
 
@@ -129,6 +129,7 @@ export async function bridgeLogin(inpage, creds, timing) {
129
129
  }
130
130
  const submittedAt = Date.now();
131
131
  let goneStreak = 0;
132
+ let lookedAgain = false;
132
133
  let last = before;
133
134
  for (;;) {
134
135
  await new Promise((resolve) => {
@@ -158,8 +159,12 @@ export async function bridgeLogin(inpage, creds, timing) {
158
159
  if (newError && Date.now() - submittedAt >= timing.earlyFailAfterMs)
159
160
  break;
160
161
  }
161
- if (Date.now() - submittedAt >= timing.verifyTimeoutMs)
162
- break;
162
+ if (Date.now() - submittedAt >= timing.verifyTimeoutMs) {
163
+ // The form was gone on the last look: look once more before calling the login failed (see engine.ts).
164
+ if (goneStreak === 0 || lookedAgain)
165
+ break;
166
+ lookedAgain = true;
167
+ }
163
168
  }
164
169
  inpage('clear', { role: 'password' });
165
170
  return finish('failed', {
@@ -156,6 +156,7 @@ export async function performLogin(page, profile, timing = DEFAULT_TIMING, clock
156
156
  await submitForm(page, detected.hasSubmit);
157
157
  const submittedAt = clock.now();
158
158
  let goneStreak = 0;
159
+ let lookedAgain = false;
159
160
  let last = null;
160
161
  for (;;) {
161
162
  await clock.sleep(timing.pollMs);
@@ -179,8 +180,13 @@ export async function performLogin(page, profile, timing = DEFAULT_TIMING, clock
179
180
  break;
180
181
  }
181
182
  }
182
- if (clock.now() - submittedAt >= timing.verifyTimeoutMs)
183
- break;
183
+ if (clock.now() - submittedAt >= timing.verifyTimeoutMs) {
184
+ // The password field was gone on the last look: look once more before calling the login failed,
185
+ // so a page that was busy up to the deadline is not reported (and rate-limited) as a failure.
186
+ if (goneStreak === 0 || lookedAgain)
187
+ break;
188
+ lookedAgain = true;
189
+ }
184
190
  }
185
191
  await clearPassword();
186
192
  return {
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "autologin-mcp",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
+ "mcpName": "io.github.olgaysezgin/autologin-mcp",
4
5
  "description": "Auto-login MCP server for AI coding agents (Claude Code, Codex, Cursor, Gemini CLI) and their browser tools (Claude in Chrome, Playwright MCP, chrome-devtools-mcp, Puppeteer). Logs your agent into the app under test; credentials stay on your machine and never reach the model.",
5
6
  "type": "module",
6
7
  "bin": {
@@ -20,7 +21,7 @@
20
21
  "test": "vitest run",
21
22
  "coverage": "vitest run --coverage",
22
23
  "prepublishOnly": "node scripts/release.mjs publish-guard && npm run typecheck && npm run coverage && npm run build && npm run smoke",
23
- "version": "node scripts/release.mjs sync && git add README.md CHANGELOG.md docs",
24
+ "version": "node scripts/release.mjs sync && git add README.md CHANGELOG.md docs server.json",
24
25
  "smoke": "node scripts/smoke.mjs"
25
26
  },
26
27
  "keywords": [