Skip to content

fix(gateway): ensure /reload-mcp diff reads config to avoid mislabeling servers as removed - #104051

Open
gauravsaxena1997 wants to merge 1 commit into
NousResearch:mainfrom
gauravsaxena1997:fix/reload-mcp-diff-config
Open

gauravsaxena1997 wants to merge 1 commit into
NousResearch:mainfrom
gauravsaxena1997:fix/reload-mcp-diff-config

Conversation

@gauravsaxena1997

Copy link
Copy Markdown

Closes #80771. The diff logic was comparing live connection registries without referencing the MCP config, causing servers that were still configured (but not yet connected or disabled) to be incorrectly labeled as 'Removed'.

@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery tool/mcp MCP client and OAuth area/config Config system, migrations, profiles P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels Sep 6, 2026
@alt-glitch

Copy link
Copy Markdown

This was generated by AI during triage.

Duplicate of your earlier open #94452, which makes the same change (classify removed against mcp_servers config rather than the live _servers registry) for #80771; #80794 is the earliest open fix for that issue and includes tests. Consider closing one of #94452/#104051. Note this diff re-parses config.yaml directly rather than using the loaded config, and added still compares against connected_servers.

This branch has not been deployed

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

Labels

area/config Config system, migrations, profiles comp/gateway Gateway runner, session dispatch, delivery duplicate This issue or pull request already exists 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.

[Bug]: /reload-mcp reports still-configured servers as "➖ Removed" — the diff never reads config

2 participants