Invite-only.
Connect

LlamaIndex

LlamaIndex agents can load Dock's MCP tools via the llama-index-tools-mcp adapter. Useful when you want Dock writes tied into a RAG pipeline.

Client
LlamaIndex
Data framework for LLMs. MCP via llama-index-tools-mcp.
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

  • Python 3.10+.
  • llama-index and llama-index-tools-mcp installed.
  • A Dock dk_ key.
agent.pypython
import os
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
from llama_index.core.agent import ReActAgent
from llama_index.llms.anthropic import Anthropic

mcp = BasicMCPClient(
    "https://trydock.ai/api/mcp",
    headers={"Authorization": f"Bearer {os.environ['DOCK_API_KEY']}"},
)

spec = McpToolSpec(client=mcp)
tools = await spec.to_tool_list_async()

agent = ReActAgent.from_tools(tools, llm=Anthropic(model="claude-opus-4-7"))

Troubleshooting

Symptom
Fix
to_tool_list_async hangs
The MCP client is waiting for an initialize response. Double-check the URL has no trailing slash and the Authorization header is passed.

Related