Doc Bridge

Connect Doc Bridge deterministic handoffs to MCP-compatible coding agents.

View raw Markdown · llms.txt · For agents

MCP setup

ak-docs mcp install --cursor    # writes .cursor/mcp.json in repo root
ak-docs mcp install --claude    # merges into Claude Desktop config (macOS)

Then add the agent skill: skills/doc-bridge.md

Manual — Cursor / Claude Desktop / Codex-style

{
  "mcpServers": {
    "ak-docs": {
      "command": "npx",
      "args": ["ak-docs", "mcp"],
      "cwd": "/absolute/path/to/your/repo"
    }
  }
}

Or with a global/local bin:

{
  "mcpServers": {
    "ak-docs": {
      "command": "ak-docs",
      "args": ["mcp"]
    }
  }
}

Run from the repo root (or pass config discovery that resolves to it). Always ak-docs index after doc changes (or gate in CI).

Tools

ToolPurpose
handoff.resolvePackage/ownership → AgentHandoff
doc.searchDeterministic index search
doc.getRead an indexed agent doc
gate.statusFreshness / configured gates
retriever.queryLocal retriever chunks
memory.classify / memory.promoteDraftMemory pipeline

Agent guidance (paste into AGENTS.md)

Before editing a package:

  1. Call handoff.resolve with the package id
  2. Open startHere
  3. Stay inside editRoots
  4. Run checks before claiming done

The AgentsKit ecosystem

Build the agent. Then take it all the way.