Hosts to allow
Both are needed. Over MCP,
download_document returns a presigned URL rather than the file bytes, and fetching that URL is an ordinary network request that the sandbox’s egress rules apply to. Allowing only terrapinfinance.com produces the most common symptom we see: the assistant finds and lists documents happily, then reports that it located them but cannot read them.
Where to set it
In Claude Desktop, the allowed-domains list is under Settings → Capabilities → Network access on Free, Pro, and Max. On Team and Enterprise it is an administrator policy under Organization settings → Capabilities → Code execution → Allow network egress, and the in-app setting will not override it. In Claude Code, run/sandbox to inspect the current policy, or add the hosts to sandbox.network.allowedDomains in ~/.claude/settings.json:
settings.json
POST https://terrapinfinance.com/mcp through with the Authorization header intact; proxies that strip it make every call fail with 401.