What
If the MCP server that supplied the tool named by --permission-prompt-tool is no longer connected in the session, permission checks are now denied with a message saying so, instead of being resolved against a stale tool.
Details
- The wrapper checks the server's connection state at check time, and is also constructed in a do-nothing "deny" form up front when the server is already absent at startup.
- No flag involved; behaviour follows the session's MCP connection state.
Evidence
its MCP server is not connected in this session.
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundle--permission-prompt-tool
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up --permission-prompt-tool, on Hooks reference.
The `AskUserQuestion` tool is the typical case: Claude wants to ask the user something, but there is no terminal to answer in. A `-p` run offers `AskUserQuestion` only when it has a [permission host](/docs/en/headless#turn-off-permission-p…hooks see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up --permission-prompt-tool, on Hooks reference.