⌨️--permission-prompt-tool Flag
Also known as claude --permission-prompt-tool
It names an MCP tool that says yes or no for you.
Think of it like
It is like you pick a grown-up to say yes or no. They do it when you are not there.
Example
Jack's team has an MCP server that checks each command against their rules. Their CI runs claude -p with --permission-prompt-tool pointing at it.
Why it matters
Your own code can judge each action, which is more exact than a fixed allow list.
Definition
Example code
bash
claude -p "Deploy the docs" --permission-prompt-tool mcp__approver__checkCommon mistake
Key takeaways
- 1An MCP tool. Full name.
- 2Waits to connect. 30 seconds by default.
- 3Yes or no. For each action.