claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Feature Request] Allow commands that don't include a given pattern?

Open malkomalko opened this issue 6 months ago • 2 comments

I have an MCP tool that does an eval to run code against my current running server. It'd be nice to auto allow anything that doesn't include FileSystem or Request modules for security, and right now I'm not sure that's possible.

Any thoughts on this?

malkomalko avatar Jun 15 '25 20:06 malkomalko

Side note: It appears that something like "Bash(find * | rg *)" is not supported in allow and feel that would be useful as well.

malkomalko avatar Jun 15 '25 20:06 malkomalko

Did you try --permission-prompt-tool?

anuramat avatar Jun 16 '25 00:06 anuramat

this isn't really possible given the current way that MCP works. you'll have to change your config to auto-allow the tool. If you haven't seen it, try /allowed-tools in a Claude Code session

wolffiex avatar Jun 17 '25 23:06 wolffiex

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 11 '25 14:08 github-actions[bot]