Skip to content

fix(mcp): auto-OAuth on server add#446

Merged
CSRessel merged 5 commits into
mainfrom
fix-mcp-auto-oauth
May 14, 2026
Merged

fix(mcp): auto-OAuth on server add#446
CSRessel merged 5 commits into
mainfrom
fix-mcp-auto-oauth

Conversation

@nori-sessions
Copy link
Copy Markdown
Contributor

@nori-sessions nori-sessions Bot commented Apr 18, 2026

Summary

🤖 Generated with Nori

  • Fix persist_mcp_servers to sync in-memory Config.mcp_servers after writing to disk, so ComputeMcpAuthStatuses sees newly added servers
  • Add set_mcp_servers() setter on ChatWidget following the existing pattern of set_approval_policy, set_vim_mode, etc.
  • This enables the existing auto-OAuth trigger to fire when a user adds an HTTP MCP server without a bearer token

Test Plan

  • Added unit test verifying set_mcp_servers updates config_ref()
  • Existing picker-level auto-probe tests pass (auto_probe_triggers_oauth_for_not_logged_in_server, etc.)
  • Full nori-tui test suite passes (1200 tests)
  • Clippy clean

Share Nori with your team: https://www.npmjs.com/package/nori-skillsets

nori-agent and others added 5 commits April 18, 2026 01:32
persist_mcp_servers wrote to disk but never updated the in-memory
Config.mcp_servers, so ComputeMcpAuthStatuses read stale config and
the auto-OAuth trigger never fired for newly added servers.
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
"Restart to apply changes" no longer matches behavior — after syncing the
in-memory config, auth status detection and auto-OAuth now apply immediately.
The remaining restart requirement is specifically for the ACP agent's MCP
server list, which is bound in create_session.
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
@CSRessel CSRessel merged commit e1fcce1 into main May 14, 2026
3 checks passed
@CSRessel CSRessel deleted the fix-mcp-auto-oauth branch May 14, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants