Skip to content

Support notifications/tools/list_changed #10105

Open

Description

@sebthom

What feature would you like to see?

I am implementing an MCP server that dynamically enables/disables mcp tools based on changing workspace conditions during runtime and notifies the MCP clients using notifications/tools/list_changed via the TypeScript SDK, see modelcontextprotocol/typescript-sdk#1206

Unfortunately codex currently does not pick up the changes and does not update the tools list of the mcp server:

fn handle_tool_list_changed(
&self,
params: <mcp_types::ToolListChangedNotification as mcp_types::ModelContextProtocolNotification>::Params,
) {
tracing::info!("notifications/tools/list_changed -> params: {:?}", params);
}

notifications/tools/list_changed is not a new addition but present at least since MCP Spec 2024-11-05: https://modelcontextprotocol.io/specification/2024-11-05/server/tools#list-changed-notification

Additional information

Other popular CLI agents already support this:

Activity

  1. added
    enhancement
    on Jan 28, 2026
  2. added
    mcp
    mcp-server
    on Jan 28, 2026
  3. DiogoVDDC commented on Apr 8, 2026

    @DiogoVDDC

    This would be useful for me as well

  4. coezbek commented on Apr 9, 2026

    @coezbek

    This breaks using Google Colab MCP which requires login before it tells you which tools it supports:

    googlecolab/colab-mcp#50

  5. barryw commented on Jul 3, 2026

    @barryw

    I have a candidate fix for this at https://github.com/barryw/codex/tree/codex/fix-mcp-tool-list-changed.

    Summary:

    • refresh cached MCP tools when a server sends a tool list changed notification
    • surface tool list change notifications through the RMCP client handlers
    • add connection manager coverage for notification-driven tool refresh behavior

    This also looks related to #19155. Happy to open an invited PR if this matches the intended direction.

  6. removed
    mcp-server
    on Aug 26, 2026
  7. asw101 commented on Aug 29, 2026

    @asw101

    Just a +1 as we are seeing the same issue as well (microsoft/wassette#791 ) and would love to see a fix land.

  8. glmn commented on Oct 7, 2026

    @glmn

    Another concrete case, re-checked on main at 406b0c4: on_tool_list_changed in codex-rs/rmcp-client/src/logging_client_handler.rs still only logs, so a tool added by a server after tools/list never reaches the session.

    We run Codex CLI as one of several agents in a desktop host (NeuroSquad). The host's MCP server grants tools when the user connects the agent to a new resource mid-session (a terminal, a browser, a note). Clients that re-list on notifications/tools/list_changed see exactly the granted tools. For Codex we have to list every capability up front and refuse ungranted ones at call time, and any third-party MCP server added mid-session only reaches Codex after a restart.

    Re-listing the server's tools on the notification (and replacing the server's entries in the next request's tool list) would be enough for us. The partial fix @barryw linked above looks like the right shape.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmcp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions