⌨️--disallowedTools Flag
Also known as claude --disallowedTools, --disallowed-tools, --disallowedTools "mcp__*"
It lists tools, or uses of them, that are not allowed.
Think of it like
It is like a sign on a door that says this room is closed.
Example
Emma lets Claude run tests but not delete files. She adds --disallowedTools "Bash(rm *)", so Bash still works for everything else.
Why it matters
You can block one risky use and keep the rest of a tool.
Definition
Example code
bash
claude --disallowedTools "Bash(rm *)" "mcp__*"Common mistake
Key takeaways
- 1Bare name. Removes the tool.
- 2A pattern. Blocks matching calls.
- 3mcp__*. All MCP tools.