# NousResearch/hermes-agent · MCP OAuth generator aclose missing, poisoning context.lock

## Open now

- 1 issue, 1 PR open on GitHub.
- #101756: MCP OAuth: async_auth_flow bridge drops the SDK's inner generator without aclose(), poisoning context.lock cross-task — every OAuth MCP server parks permanently
- PR #134869: fix(mcp): close the OAuth inner auth-flow generator in the owning task

A bug where the async_auth_flow bridge fails to call aclose() on the SDK's inner generator, causing context.lock to be poisoned across tasks and permanently stalling OAuth MCP servers. Members include a bug report and two related fix attempts addressing generator cleanup in the owning task.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 2 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

- #101756: MCP OAuth: async_auth_flow bridge drops the SDK's inner generator without aclose(), poisoning context.lock cross-task — every OAuth MCP server parks permanently

## Prior & competing PRs

- **#101779: fix(mcp): close the OAuth inner auth flow in-task to avoid a poisoned context.lock (#101756)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#84963`, `#90888`, `#101756`
- **#101909: fix(mcp-oauth): close the inner auth-flow generator in the owning task (fixes permanent OAuth MCP wedge)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#90888`, `#84963`, `#101756`
- **#134869: fix(mcp): close the OAuth inner auth-flow generator in the owning task**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `tests/tools/test_mcp_oauth_bidirectional.py`, `tools/mcp_oauth_manager.py`

## Fix status

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