codex icon indicating copy to clipboard operation
codex copied to clipboard

Ability to turn off specific tools from an MCP server

Open davidsloiko opened this issue 1 year ago • 6 comments

What feature would you like to see?

Please add the ability to turn off specific tools from an MCP server. I'd like the tools to completely be excluded from the context, not simply disallowed to be called like Claude Code handles it. It could help with servers like the supabase MCP, where I want all read-only operations to be handled through the MCP, but for it to not be able to apply migrations through the MCP, since I want that to be handled locally and through the CLI, with version control for migrations

Are you interested in implementing this feature?

No response

Additional information

No response

davidsloiko avatar Aug 30 '25 21:08 davidsloiko

Would like to work on this enhancement

nakshatra-nahar avatar Aug 30 '25 22:08 nakshatra-nahar

Would like to work on this enhancement

That'd be amazing :)

davidsloiko avatar Aug 30 '25 23:08 davidsloiko

Hey @sloikod

Completed the feature implementation - feat: add MCP tool filtering with exclude_tools and include_tools #3255

nakshatra-nahar avatar Sep 06 '25 21:09 nakshatra-nahar

@nakshatra-nahar Wow! I'm actually impressed, tysm for making this haha

davidsloiko avatar Sep 07 '25 00:09 davidsloiko

How can we take this forward @sloikod ?

nakshatra-nahar avatar Sep 07 '25 09:09 nakshatra-nahar

@nakshatra-nahar Not sure, my first time doing this too

davidsloiko avatar Sep 08 '25 16:09 davidsloiko