Skip to content

fix(mcp): stop retrying initial MCP auth failures (#25624)#25776

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-65abd7c4
May 14, 2026
Merged

fix(mcp): stop retrying initial MCP auth failures (#25624)#25776
teknium1 merged 1 commit into
mainfrom
hermes/hermes-65abd7c4

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

When an MCP server returns an auth failure during initial connect, the client kept retrying — flooding logs and never making progress.

Uses the existing _is_auth_error predicate to short-circuit the retry loop on auth-shaped errors. Includes a regression test.

Salvage of #25624 by @AsoTora.

@teknium1 teknium1 merged commit 1247ff2 into main May 14, 2026
@teknium1 teknium1 deleted the hermes/hermes-65abd7c4 branch May 14, 2026 14:58
@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-65abd7c4 vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8339 on HEAD, 8339 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4387 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Medium — degraded but workaround exists tool/mcp MCP client and OAuth type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants