# NousResearch/hermes-agent · MCP server removal and leftover OAuth token handling

## Open now

- 1 issue, 2 PRs open on GitHub.
- #137999: DELETE /api/mcp/servers/{name} leaves the server's OAuth tokens on disk (CLI remove deletes them)
- PR #138007: fix(web): remove OAuth tokens with MCP servers
- PR #162436: Removing an MCP server from the dashboard API, gateway RPC or picker signs you out of it (salvage #138007)

The members concern removing MCP servers through the dashboard API, gateway RPC, or picker, and how that relates to deleting the server's stored OAuth tokens, which the CLI remove path is described as doing. They include an issue report, a web fix PR, and a salvage item; what any of them actually changed or settled is not stated in the titles.

## TL;DR

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

- #137999: DELETE /api/mcp/servers/{name} leaves the server's OAuth tokens on disk (CLI remove deletes them)

## Prior & competing PRs

- **#138007: fix(web): remove OAuth tokens with MCP servers**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#162436`
  - files: `hermes_cli/web_routers/mcp.py`, `tests/hermes_cli/test_dashboard_admin_endpoints.py`
- **#162436: Removing an MCP server from the dashboard API, gateway RPC or picker signs you out of it (salvage #138007)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `7c7671dc5581441e26a74c4684022b89bbd40a45`
  - files: `hermes_cli/mcp_catalog.py`, `hermes_cli/mcp_config.py`, `hermes_cli/web_routers/mcp.py`, `tests/hermes_cli/test_dashboard_admin_endpoints.py`, `tests/tools/mcp/test_mcp_oauth_manager.py`, `tests/tools/mcp/test_mcp_oauth_user_agent.py`, `tests/tui_gateway/test_mcp_profile_rpcs.py`, `tools/mcp/oauth.py`, `tools/mcp/oauth_provider.py`, `tui_gateway/methods_tools.py`

## Fix status

- No merged fix on record.
- Subsystem: `mcp`
- Kind: `bug` (from the open issues' GitHub type labels).
