Connect
Sourcegraph Cody
Cody's agentic mode (and Sourcegraph Amp) supports remote MCP servers. Add Dock in the Cody config file and your code-aware agent can fold in Dock workspaces as context.
Client
Sourcegraph Cody
Code-aware AI with agent mode. MCP via Amp / Cody settings.
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
- Cody installed (VS Code, JetBrains, or CLI).
- A Dock
dk_key.
Config file
~/.config/sourcegraph/cody.jsoncody.json (merge mcpServers)json
{
"mcpServers": {
"dock": {
"url": "https://trydock.ai/api/mcp",
"headers": {
"Authorization": "Bearer dk_live_c914f1c6..."
}
}
}
}Verify
Use the dock MCP to list my workspaces.Troubleshooting
Symptom
Fix
Cody can't see Dock tools
Reload the Cody extension (in VS Code, "Developer: Reload Window"). Config is loaded at startup.