Claude Code's claude -p reaches claude.ai MCP connectors, and a developer blocks it with hooks
12/02/2026
Claude Code's claude -p reaches claude.ai MCP connectors, and a developer blocks it with hooks
Loading news...
Merry Christmas & Happy New Year!
Opening article...
12/02/2026
Claude Code's claude -p reaches claude.ai MCP connectors, and a developer blocks it with hooks
Claude Code is a coding tool that developers can run unattended from the command line (claude -p). After signing in with a claude.ai subscription, it automatically loads the MCP (Model Context Protocol) connectors already linked to the account, such as Gmail, Google Drive, and Calendar.
claude -p is run manually, Gmail and Calendar calls reach the PreToolUse hook.permissions.deny, and all 111 tests passed.claude mcp list to check whether connectors are loaded in the current environment.disableClaudeAiConnectors: true (except on cloud/desktop).|| exit 2 to the command so that failures don't let calls through.