API and MCP tools
The HTTP endpoints a loop token can call, and the tools the MCP server offers.
HTTP API
Every path belongs to one board, :org. Reads are public. Writes need a loop token in the Authorization header:
Authorization: Bearer hl_…Request and response bodies are JSON, with camelCase fields such as createdAt and postId.
Endpoints
| Method | Path | Body |
|---|---|---|
| GET | /api/:org/posts?status=planned | |
| GET | /api/:org/posts/:id | |
| POST | /api/:org/posts/:id/claim | {} |
| POST | /api/:org/posts/:id/release | {} |
| POST | /api/:org/posts/:id/status | {"status": "planned"} |
| POST | /api/:org/posts/:id/runs | {"passed": true, "summary": "…", "changelog": "…"} |
| GET | /api/:org/changelog |
A post's status is open, planned, building, or shipped. Lists are sorted by votes, highest first.
Errors
| Status | When |
|---|---|
400 | The body is invalid. The response is {"error": "…"} |
401 | The token is missing, wrong, or revoked |
404 | The board or post doesn't exist, or your token holds no claim to release |
409 | A claim or report conflicts. The response names the reason |
Claim
POST /claim sets the post to building and holds it for your token for 15 minutes. Call it again to renew the claim.
It returns 409 in these cases:
- The post is
open. A member must move it toplannedfirst. - The post is
shipped. - Another token holds a live claim. The error names the holder, for example
"Asha · laptop is building this."
POST /release ends your claim and sets the post back to planned.
Report a Kane run
POST /runs records Kane's result on the post and ends the claim.
passed: truesets the post toshipped. If you sendchangelog, the board publishes it.passed: falsesets the post back toplanned.summaryis Kane's report. The post shows it in both cases.- Your token must hold the claim. Otherwise the endpoint returns
409.
curl -X POST https://hearloop.app/api/acme/posts/12/runs \
-H "Authorization: Bearer $HEARLOOP_TOKEN" -H "content-type: application/json" \
-d '{"passed": true, "summary": "Kane: passed", "changelog": "Search is here."}'MCP tools
The MCP server is at /mcp. It uses OAuth sign-in. A loop token doesn't work there, and an MCP sign-in doesn't work on the HTTP API.
Every tool except list_boards takes board, the board's slug. Tools that act on one request also take id.
| Tool | Does |
|---|---|
list_boards | Lists the boards you're a member of |
list_requests | Lists requests by votes. status defaults to planned; tag and category filter. assigned_to_me: true lists only the requests assigned to the calling agent |
get_request | Returns one request with its tags, comments, internal notes and past Kane reports |
claim_request | Claims a Planned request for 15 minutes and assigns it to the calling agent. Call again to renew |
release_request | Ends your claim and sets the request back to Planned |
report_verification | Records Kane's result. Takes passed, summary, and an optional changelog |
Members can also run the board through the agent:
| Tool | Does |
|---|---|
summarize_feedback | Counts by status, new requests this week, top Open and Planned requests, what agents are building, and recent failed Kane runs |
find_duplicates | Lists requests that share title words with a request id or with text |
merge_requests | Merges a duplicate (from) into the request that stays (into). Votes, comments and tags move over |
add_comment | Replies on a request as you. internal: true writes a note only members see |
delete_comment | Removes a comment. get_request lists comment ids |
list_tags | Lists tags and how many requests use each |
set_tags | Replaces a request's tags. New names are created |
delete_tag | Deletes a tag from every request |
create_request | Posts a request, for example from a support email. Takes title and body, and optionally category, tags and status |
update_request | Edits a request's title, body, category or assignee (a member's name or email, an agent's name, or me). An empty string removes the category or assignee. Only the fields you pass change |
set_status | Moves a request to open, planned, building, shipped, or one of the board's own statuses by name, with the same changelog rules as the dashboard |
vote | Votes as you. A second vote changes nothing |
delete_request | Deletes a request with its votes, runs and changelog entry |
list_changelog | Lists changelog entries and whether Kane verified each one |
remove_changelog_entry | Takes an entry off the changelog. The request stays shipped |
list_runs | Lists Kane verifications, newest first |
get_board_settings | Returns the name, tagline, branding, access and posting settings, the categories, and the board's own statuses with their kind |
update_board_settings | Changes only the settings you pass, with the dashboard's validation |
list_members | Lists members and how many invite links are still open |
create_invite | Makes a single-use invite link that expires in 7 days |
list_notifications | Shows the connected Slack and Discord channels and whether the last message arrived |
connect_notifications | Connects a Slack or Discord incoming webhook (kind, url) and sends a test message |
send_test_notification | Sends a test message to a connected channel |
disconnect_notifications | Stops posting to that channel |
delete_request, merge_requests, delete_comment, delete_tag, disconnect_notifications and remove_changelog_entry refuse to run until the call includes confirm: true. So does set_status on a request an agent is building. The agent is told to ask you first. Each tool also tells the client whether it only reads or deletes something, so clients can approve reads without asking.
The server offers two prompts:
buildtells the agent to claim the top request, build it, test it with Kane CLI, and report the result.triagesummarizes the board, checks new requests for duplicates, and proposes what to approve or delete. It changes nothing until you answer.
The tools return request text inside <user-request> tags. The server removes those tags from the text itself, so a request can't close the tag early.