Search the documentation
3 pages for hastrustdialogaccepted.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…rant the trust. * **Trust without a dialog**: set `projects["<path>"].hasTrustDialogAccepted` to `true` in `~/.claude.json`. `<path>` is the folder [Project allow rules and workspace trust](/docs/en/p…
Configure permissions
Claude Code CLI · in the page
permissions
…this exact folder trusted, trust it by hand: set `projects["<path>"].hasTrustDialogAccepted` to `true` in `~/.claude.json`, where `<path>` is the repository root, or the folder itself outside a repos…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…ne server in that agent file and writes the exact `projects["<path>"].hasTrustDialogAccepted` key for `~/.claude.json` to the debug log * **`--add-dir` directories**: a directory outside your trusted…