AI Agent Setup

Configure MCP server for coding agent integration.

Step 1: Start MCP Server

Start the barkcli MCP server.

barkcli mcp

Step 2: Configure Your Agent

Add barkcli as an MCP server in your agent's config.

# For OpenCode (.opencode/config.json)
{
  "mcpServers": {
    "barkcli": {
      "command": "barkcli",
      "args": ["mcp"]
    }
  }
}

# For Claude Code (.claude/settings.json)
{
  "mcpServers": {
    "barkcli": {
      "command": "barkcli",
      "args": ["mcp"]
    }
  }
}

Step 3: Use MCP Tools

Your agent can now use 56 barkcli tools for boards, cards, memory, specs, sessions, orchestration, and code search.

# Agent can now:
# - List tasks: board_list, card_list
# - Create tasks: card_create
# - Claim work: task_claim, packet_claim
# - Search code: code_search
# - Register as agent: agent_register
# - Run cycles: orchestrate_cycle, dispatch
# - Snapshot: mind_snapshot, overview

Step 4: Register Your Agent

Register an agent id so barkcli can assign tasks and track sessions.

barkcli agent register --id claude-code --name "My Agent"
barkcli agent watch   # Follow the agent's work