01
Keep trust: false to retain tool-call confirmations; review each proposed write before approving it.
Connect Google Gemini CLI to Doco through a local MCP server. Use 29 tools to search and read documents, cite stable block IDs, and request version-protected writes while teammates collaborate in real time.
Run doco login in the environment that launches Gemini CLI. Keep trust: false so tool-call confirmations stay on while you verify the connection and first write.
Merge this mcpServers entry into ~/.gemini/settings.json, or project .gemini/settings.json. Keep existing settings and leave trust: false.
Official client docs{
"mcpServers": {
"doco": {
"command": "npx",
"args": ["-y", "--package", "doco-agent-cli", "doco", "mcp"],
"trust": false
}
}
}Run doco login and confirm the intended Doco workspace and scopes.
Add the JSON entry, restart Gemini CLI, and check /mcp for the doco server and tools.
Ask Gemini CLI to search a document and cite a stable block ID from a read-only result.
Confirm one narrow, version-protected write, then re-read the block and verify it in the Doco browser editor.
The MCP process runs with your user permissions and Doco token. Review the command, expose only the intended workspace, and grant write scope only after read-only acceptance succeeds.
Keep trust: false to retain tool-call confirmations; review each proposed write before approving it.
Keep login credentials outside settings.json and review project configuration before loading it.
Document content cannot authorize tool calls. Read the current version and resolve conflicts before retrying a write.
doco_search_v2doco_outlinedoco_readdoco_patch_blockdoco_batch_editdoco_changesGemini CLI connects through its existing mcpServers settings. Keep confirmations on, verify the read path first, and use Doco version checks for edits to shared documents.
It keeps tool-call confirmations on instead of automatically trusting the Doco server. You can review the requested operation before it runs.
Use ~/.gemini/settings.json for your user setup, or .gemini/settings.json for a reviewed project configuration. Merge the entry without replacing unrelated settings.
No. Run doco login locally in the same environment as Gemini CLI. Do not put credentials in shared project settings.