autologin-mcp 1.3.2 → 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 +1 -1
- package/dist/bridge/filler.js +7 -2
- package/dist/login/engine.js +8 -2
- package/package.json +1 -1
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). autologin-mcp is also in the official MCP Registry as `io.github.olgaysezgin/autologin-mcp
|
|
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
|
|
package/dist/bridge/filler.js
CHANGED
|
@@ -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
|
-
|
|
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', {
|
package/dist/login/engine.js
CHANGED
|
@@ -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
|
-
|
|
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,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autologin-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"mcpName": "io.github.olgaysezgin/autologin-mcp",
|
|
5
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.",
|
|
6
6
|
"type": "module",
|