Skip to content

Remove a Tool (or Resource or Prompt) during server runtime #964

Description

@ChristianSoraruf

Question

Hi everybody,

I am quite new to this mcp library (not to other libraries though) and still experimenting with it. Reading the user guide (https://modelcontextprotocol.io/docs/concepts/tools#tool-discovery-and-updates) I understand that "Tools can be added or removed during runtime". Nevertheless I just see methods to add tools to a server.

I am sorry if the question results too easy. Thanks for helping.

Christian

Additional Context

No response

Activity

  1. Lurchfresser commented on Sep 21, 2025

    @Lurchfresser

    I had the same question for the typescript sdk and stumbled uppon this post. In the typescript sdk the registerResource() function resturns an object, which has an interface for lifecycle support, with methods like update() or remove() . Maybe its the same in python, havent checked

  2. felixweinberger commented on Oct 7, 2025

    @felixweinberger
    Contributor

    Supported now by #1322 should be in the next release (Thursday)

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

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions