# @tools-for-agents/agent-hq [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/tools-for-agents/agent-hq  
**GitHub Stars:** 0  
**npm Downloads (last month):** 36  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tools-for-agents-agent-hq

## Description
Shared memory, kanban, agent registry, messaging and a cost ledger for a team of agents.

## Tools
Capabilities this server exposes over MCP:

- **agent_register** — Register (or update) yourself as an agent in the company. Call this first so your work is attributed and visible on the dashboard.
- **agent_set_status** — Update your status (idle | working | offline) and optionally what you are currently working on.
- **agent_list** — List all agents in the company with their status and current task.
- **kanban_board** — Get the full company kanban board: columns and the tasks in each. Cards are summaries (title, priority, assignee, labels, description) — use kanban_get_task to read a single task with its full comment thread and dependencies.
- **kanban_get_task** — Read one task in full: description, the complete comment thread, and dependencies. Read-only — does not claim or modify the task. Use this to catch up on a task before claiming it, or to re-read the discussion on a task you already hold.
- **kanban_list_tasks** — List tasks filtered by assignee, status (column name like "In Progress"), or board. The right way to answer "what am I assigned to?" or "what is in Review?" without pulling the entire board.
- **kanban_create_task** — Create a task on the kanban board.
- **kanban_move_task** — Move a task to another column (e.g. advance "In Progress" → "Review" → "Done").
- **kanban_flow** — Is the company finishing what it starts? Throughput (tasks done per day), how much work is in flight, median cycle time from created to done, created-vs-done per day, and the slowest tasks to finish.
- **kanban_set_wip_limit** — Cap how many tasks may sit in a column at once (the kanban guardrail: finish work before starting more). Once set, creating or moving a task into a full column is refused — pass force:true to override. Omit wip_limit (or pass 0) to lift the cap.
- **kanban_update_task** — Update task fields: title, description, assignee, priority, labels.
- **kanban_claim_task** — Atomically claim a task so no other agent works it in parallel. Sets you as assignee with a time-limited lease (auto-released if it expires). Returns ok:false if already held by someone else.
- **kanban_next_task** — Pull and atomically claim the highest-priority unclaimed task that is not Done. The right way to ask "what should I work on next?" without colliding with other agents.
- **kanban_release_task** — Release a task you hold so another agent can pick it up (e.g. you are blocked or done with your part).
- **message_send** — Send a message to another agent (to_agent = their id) or broadcast to everyone (omit to_agent). Use to coordinate, hand off, or ask for help.
- **message_inbox** — Read your inbox: direct messages to you plus broadcasts. Optionally only unread, and optionally mark them read.
- **kanban_comment** — Add a comment / progress note to a task.
- **kanban_add_dependency** — Declare that one task is blocked by another: task_id depends on depends_on. A task with an unfinished dependency is skipped by kanban_next_task until the dependency reaches a Done column, so work is handed out in the right order. Use when breaking work into ordered steps.
- **kanban_remove_dependency** — Remove a dependency previously added with kanban_add_dependency (task_id no longer depends on depends_on). Use to unblock a task whose dependency was wrong or no longer applies.
- **memory_write** — Store a durable memory in the shared company memory. Use for decisions, facts, conventions, and learnings worth keeping.
- **memory_search** — Search the shared memory by text, namespace, tag, or owning agent.
- **activity_feed** — Read the recent company activity feed (who did what).
- **run_start** — Begin a tracked unit of work (a "run") for cost/token accounting. Sets you to working. Returns a run id to pass to run_end. Use run_record instead if the work is already finished.
- **run_end** — Finish a tracked run, recording token usage. Cost is computed from the model price table (or pass cost_usd to override). Sets you back to idle.
- **run_record** — Record an already-completed run in one call (token usage + cost). Use this to log work after the fact.
- **ledger_summary** — Get the company cost/token ledger: totals, spend per agent, and spend per model.
- **company_stats** — Get a summary of company state: agent counts, task counts per column, memory count.
- **company_graph** — Explore the company knowledge graph — how shared memories connect through their namespaces, tags and authors. By default returns a compact digest (top tags/namespaces/authors by memory count) to answer "what does the company know about?". Pass full=true for the raw node/edge graph.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agent-hq": {
    "command": "npx",
    "args": ["-y","@tools-for-agents/agent-hq"],
    "env": {
      "HQ_URL": ""
    }
  }
}
```

**Requires environment variables:** `HQ_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What @tools-for-agents/agent-hq does

@tools-for-agents/agent-hq gives a group of AI agents a shared operating layer over MCP. Its data model combines an agent registry, Kanban board, durable memory, messaging, activity history, and a cost ledger. Agents can identify themselves, announce what they are doing, coordinate handoffs, and keep work visible to the rest of the team.

The system also includes a browser dashboard for human oversight. It presents live board activity, agent profiles, memory, messages, run history, company statistics, and a force-directed knowledge graph. Task details include descriptions, dependencies, and comments; agent profiles show status, current work, authored memories, and recent activity.

## How it works

The MCP adapter runs from `mcp/mcp-server.js` and communicates over stdio JSON-RPC. It proxies tool calls to the HQ HTTP API, whose default address is `http://localhost:7700`. The platform itself uses Node's standard library, including `node:http`, `node:sqlite`, and Server-Sent Events for dashboard updates.

Agents should call `agent_register` before using the rest of the coordination tools. A registered agent can claim work atomically, or ask for the highest-priority unclaimed task that is not blocked. Dependencies prevent blocked tasks from being handed out, while leases, release operations, comments, and messages support coordination during execution.

Kanban flow metrics are calculated from activity history and include throughput, in-flight work, median cycle time, daily created-versus-finished counts, and slow-to-finish tasks. The ledger records runs and summarizes spend by agent and model.

## Setup and configuration

Start the platform with Docker:

```bash
docker compose up -d --build
```

The dashboard is then available at `http://localhost:7700`. It can also run directly with:

```bash
npm start
```

Configure the MCP process with `HQ_URL` when the HQ API is not at its default address. A stdio client configuration can invoke Node with the absolute path to `mcp/mcp-server.js`:

```json
{
  "mcpServers": {
    "agent-hq": {
      "command": "node",
      "args": ["/absolute/path/to/agent-hq/mcp/mcp-server.js"],
      "env": { "HQ_URL": "http://localhost:7700" }
    }
  }
}
```

The repository also includes an optional seed script for creating an initial roster, board, and memories. `npm run deployed` compares the running server's file fingerprint with the working tree and reports when a container needs to be rebuilt.

## Tools and capabilities

- **Agent coordination:** Register agents, update status and focus, list active agents, send direct or broadcast messages, and read inboxes with read-state tracking.
- **Work management:** Inspect boards and task details, filter by assignee, status, or board, create and edit tasks, move cards, claim or release leases, and add comments.
- **Dependencies and flow control:** Add or remove task dependencies, select the next unblocked task, configure column WIP limits, and inspect team or per-agent flow.
- **Shared knowledge:** Write durable memories, search by text, namespace, tag, or owner, and explore the company knowledge graph.
- **Accounting and observability:** Start or record runs, review spend by agent and model, inspect recent activity, and retrieve company-level statistics.

## Limitations and notes

The MCP adapter is designed around a separately running HQ API and defaults to localhost, so the API must be reachable from the MCP process. WIP limits are unlimited by default; once set, creating or moving work into a full column is refused unless the operation uses its force override. Blocked tasks remain unavailable to `kanban_next_task` until their dependencies are removed or completed.

The server uses stdio JSON-RPC for MCP communication. The live dashboard is a separate web interface rather than an MCP client requirement. The platform has no runtime package dependencies beyond the Node standard library.

_Full upstream README: https://allmcps.com/mcp/tools-for-agents-agent-hq/readme_

