Connect
Aider
Aider is a terminal-first pair programmer. Wire Dock in as an MCP server and Aider can read, write, and seal rows while you refactor.
Client
Aider
Terminal pair programmer (Python). MCP via aider-mcp plugin or REST.
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
- Aider installed (
pipx install aider-chat), version supporting MCP (0.70+). - A Dock
dk_key.
Config file
~/.aider.conf.yml for user-global, or .aider.conf.yml in the repo root for project-scoped.Reload
Aider reads config on every invocation. No daemon. Each
aider command picks up the latest config.~/.aider.conf.ymlyaml
mcp-servers:
dock:
url: https://trydock.ai/api/mcp
headers:
Authorization: Bearer dk_live_c914f1c6...Or via CLI flagbash
aider --mcp-server "dock=https://trydock.ai/api/mcp" \
--mcp-header "dock:Authorization=Bearer dk_live_c914f1c6..."Verify
$ aider
> /mcp list
dock 37 tools ok
> use the dock MCP to list my workspaces
[Aider calls list_workspaces]
Found 3 workspaces: content-pipeline, research-queue, product-brief.Troubleshooting
Symptom
Fix
/mcp list returns emptyYou're on a pre-0.70 build of Aider. Upgrade with
pipx upgrade aider-chat.Aider says "Bearer token format invalid"
YAML needs the header value in quotes if it contains spaces. Use
"Bearer dk_live_..." or switch to the CLI-flag form.