Invite-only.
Connect

Gemini CLI

Google's Gemini CLI supports remote MCP servers. Point it at Dock and the Gemini agent can list, read, and write Dock workspaces from your terminal.

Client
Gemini CLI
Google's command-line agent. Remote MCP via settings.json.
HTTP JSON-RPC (streamable-http)
Dock MCP
trydock.ai/api/mcp
37 tools · OAuth 2.1 + DCR · Bearer
Auth path
1
Mint a dk_ key in Dock Settings → API keys.
2
Paste it as Authorization: Bearer dk_… in the client config.
3
Client calls Dock MCP directly on every request.

Prerequisites

  • Gemini CLI installed (npm i -g @google/gemini-cli).
  • A Dock dk_ key.
Config file
~/.gemini/settings.json
Reload
Applied on next gemini invocation.
~/.gemini/settings.json (merge)json
{
  "mcpServers": {
    "dock": {
      "url": "https://trydock.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer dk_live_c914f1c6..."
      }
    }
  }
}

Verify

$ gemini

> /mcp list
dock    37 tools   ok

> list my dock workspaces
[calls list_workspaces]
Found 3 workspaces: content-pipeline, research-queue, product-brief

Troubleshooting

Symptom
Fix
Gemini CLI doesn't recognize mcpServers
Older builds used a different key. Update to the latest Gemini CLI: npm i -g @google/gemini-cli@latest.
401 on every call
Header interpolation quirk. Paste the dk_live_... value literally in the config (don't use env-var substitution here; Gemini CLI expands env at a different stage than most IDEs).

Related