Skip to Content
hearloop

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

MethodPathBody
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

StatusWhen
400The body is invalid. The response is {"error": "…"}
401The token is missing, wrong, or revoked
404The board or post doesn't exist, or your token holds no claim to release
409A 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 to planned first.
  • 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: true sets the post to shipped. If you send changelog, the board publishes it.
  • passed: false sets the post back to planned.
  • summary is 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.

ToolDoes
list_boardsLists the boards you're a member of
list_requestsLists 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_requestReturns one request with its tags, comments, internal notes and past Kane reports
claim_requestClaims a Planned request for 15 minutes and assigns it to the calling agent. Call again to renew
release_requestEnds your claim and sets the request back to Planned
report_verificationRecords Kane's result. Takes passed, summary, and an optional changelog

Members can also run the board through the agent:

ToolDoes
summarize_feedbackCounts by status, new requests this week, top Open and Planned requests, what agents are building, and recent failed Kane runs
find_duplicatesLists requests that share title words with a request id or with text
merge_requestsMerges a duplicate (from) into the request that stays (into). Votes, comments and tags move over
add_commentReplies on a request as you. internal: true writes a note only members see
delete_commentRemoves a comment. get_request lists comment ids
list_tagsLists tags and how many requests use each
set_tagsReplaces a request's tags. New names are created
delete_tagDeletes a tag from every request
create_requestPosts a request, for example from a support email. Takes title and body, and optionally category, tags and status
update_requestEdits 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_statusMoves 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
voteVotes as you. A second vote changes nothing
delete_requestDeletes a request with its votes, runs and changelog entry
list_changelogLists changelog entries and whether Kane verified each one
remove_changelog_entryTakes an entry off the changelog. The request stays shipped
list_runsLists Kane verifications, newest first
get_board_settingsReturns the name, tagline, branding, access and posting settings, the categories, and the board's own statuses with their kind
update_board_settingsChanges only the settings you pass, with the dashboard's validation
list_membersLists members and how many invite links are still open
create_inviteMakes a single-use invite link that expires in 7 days
list_notificationsShows the connected Slack and Discord channels and whether the last message arrived
connect_notificationsConnects a Slack or Discord incoming webhook (kind, url) and sends a test message
send_test_notificationSends a test message to a connected channel
disconnect_notificationsStops 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:

  • build tells the agent to claim the top request, build it, test it with Kane CLI, and report the result.
  • triage summarizes 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.

On this page