Skip to content

Custom disabling of specific tools #477

@bogzbonny

Description

@bogzbonny

Is there an easy workflow for disabling certain tools when the MCP server starts?

Currently the best way I've been able to figure this out is by manually implementing the ServerHandler for my server however it would be nice to just be able to use the #[tool_handler] macro and maybe add in my custom disable logic within the get_info function which needs to be manually implemented (just an idea).

Maybe I'm missing something and this is already possible. Thanks for the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions