Skip to content

rfd: add dynamic MCP server updates in live sessions#582

Open
OmChillure wants to merge 1 commit intoagentclientprotocol:mainfrom
OmChillure:rfd/mcp-server-update-live
Open

rfd: add dynamic MCP server updates in live sessions#582
OmChillure wants to merge 1 commit intoagentclientprotocol:mainfrom
OmChillure:rfd/mcp-server-update-live

Conversation

@OmChillure
Copy link

@OmChillure OmChillure commented Feb 25, 2026

Description:

This PR introduces an RFD for adding a new session/update_servers request to the Agent Client Protocol.

Motivation: Currently, MCP servers can only be provided during session setup (session/new, session/load, etc.). Once a session is established, its list of MCP servers is fixed. This forces users to restart their sessions (losing valuable context and history) just to add, remove, or reconfigure an MCP server.

Proposed Changes:

Introduce a session/update_servers request sent by the Client to the Agent.
The request payload contains the full replacement list of MCP servers (reusing the existing

McpServer
schemas).
The Agent gracefully connects to newly introduced servers and disconnects from those removed from the list.
Impact: This allows clients to confidently provide live MCP server management UIs. Settings changes to MCP configurations can instantly propagate to active agent sessions without interrupting the user's workflow.

Based on the feature request in discussion #556.

@OmChillure OmChillure requested a review from a team as a code owner February 25, 2026 16:49

## What we propose to do about it

We propose adding a new `session/update_servers` request type, sent by the ACP Client to the Agent during an active session. The request carries the full updated list of MCP servers, which replaces the prior list entirely. The Agent connects to any newly added servers and disconnects from any that are no longer present.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ignatov I think in some ways this is tied to your intiative to clarify MCP lifecycle in general. i.e should it replace all?
Should we instead have a add/remove endpoint?
And a way to retrieve all currently configured MCPs in case there were some from other agent config?


## Elevator pitch

We propose adding a new `session/update_servers` request that allows ACP Clients to send a replacement list of MCP servers to an Agent during an active session — without requiring a session restart. This unblocks a class of client UX where users can add, remove, or reconfigure MCP servers mid-conversation and have the change take effect immediately.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick, I feel like this should be session/update_mcp_servers to be clearer what we are updating

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