# NousResearch/hermes-agent · MCP OAuth callback port reuse collision fixes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #73997: mcp login: internal retry self-collides on pinned oauth.redirect_port, masking the real auth error (Errno 98)
- PR #74027: fix(mcp): prevent OAuth retry self-collisions
- PR #106639: fix(mcp): SO_REUSEADDR on adopted OAuth callback reservations (Errno 98 after consent)

These issues and pull requests address Errno 98 address-already-in-use errors during MCP OAuth login, caused by internal retry logic colliding with a pinned redirect port. Fixes involve applying SO_REUSEADDR and preventing self-collision on OAuth callback reservations.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #73997: mcp login: internal retry self-collides on pinned oauth.redirect_port, masking the real auth error (Errno 98)

## Prior & competing PRs

- **#74027: fix(mcp): prevent OAuth retry self-collisions**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `604b7af47b76`, `#73997`, `#74027`, `#374151`
  - files: `hermes_cli/mcp_config.py`, `tests/tools/test_mcp_failure_classification.py`, `tests/tools/test_mcp_oauth.py`, `tests/tools/test_mcp_oauth_manager.py`, `tests/tools/test_mcp_oauth_metadata.py`, `tools/mcp_oauth.py`, `tools/mcp_oauth_manager.py`, `tools/mcp_tool.py`
- **#106633: fix(mcp): SO_REUSEADDR on adopted OAuth callback reservations (Errno 98 after consent)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#106639: fix(mcp): SO_REUSEADDR on adopted OAuth callback reservations (Errno 98 after consent)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#73997`, `#74027`, `#65622`, `#88131`, `#106633`
  - files: `tests/tools/test_mcp_oauth_port_reentry.py`, `tools/mcp_oauth.py`

## Fix status

- No merged fix on record.
- Subsystem: `mcp`
