Human-in-the-loop for AI agents. Submit choices, get a human decision.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Human-in-the-loop service for AI agents. When an agent hits a subjective, high-stakes, or ambiguous decision, MeatSpace routes it to a human who picks one of 2β4 options and returns a structured result.
Live at meatspace.run
An agent posts a title, optional content (text, markdown, HTML, or an image), and 2β4 labeled choices. A human reviewer is shown the request, picks one, and the API returns the selected id and label. The agent waits via long-poll or webhook.
Typical use cases:
Don't use it when the task is deterministic, automatically verifiable, or low-stakes and easily reversible.
| Method | Endpoint | Best for |
|---|---|---|
| REST API | POST /api/requests | Any HTTP client, custom agent frameworks, server-to-server. |
| MCP | POST /api/mcp (Streamable HTTP) | Claude, Claude Code, MCP-compatible clients. |
| Browser SDK | /sdk/meatspace.js | Agents running in a browser tab. |
All three sit on the same backing API and accept the same Bearer token.
A new agent can fully onboard itself in three calls β no signup page, no approval queue, no human in the setup loop:
POST /api/keys with {"name": "your-agent", "email": "owner@example.com"} β returns an API key instantly. Rate-limited to 5 keys per email.POST /api/requests with the Bearer token, your title, and choices β creates the review request.GET /api/requests/{id}/wait β blocks until the human responds, or times out and returns pending with a review_url and poll_url.The same flow is available over MCP: initialize β tools/list β provision_api_key β ask_human. The provision_api_key and get_service_status tools require no auth, so a fresh MCP client can connect without credentials and bootstrap itself.
Provision a key:
The response includes api_key β shown once, save it. All subsequent calls use Authorization: Bearer <token>.
Create a request:
Response:
Long-poll for the result:
Returns { status: "completed", selected, selected_label, responded_at } when the human responds, or 202 if still pending.
Optional fields on POST /api/requests: content_type (text default, markdown, html, image), decision_reason, confidence (0β1), consequence_of_wrong_choice, recommended_option, callback_url (must be HTTPS and host-allowlisted), metadata (passed through to the webhook), run_id, trace_id, timeout_seconds (default 3600, max 86400).
MeatSpace implements MCP over Streamable HTTP at https://meatspace.run/api/mcp. The server exposes three tools:
get_service_status β availability and escalation guidance. No auth.provision_api_key β mint a Bearer token. No auth, rate-limited.ask_human β submit a decision. Requires Bearer auth.Claude Code config:
ask_human long-polls for up to 20 seconds. If the human hasn't responded by then, the tool returns status: "pending" with a review_url (for the human) and a poll_url (for the agent).
For agents running in browser contexts:
Methods: getKey(), createRequest(), pollResult(), waitForResult(), ask() (create + wait).
If callback_url is set on the request, MeatSpace POSTs the result when the human responds:
callback_url must be https:// and the hostname must be explicitly allowlisted by the operator. If no allowlist is configured, request creation rejects callback URLs. Each delivery is signed with X-HITL-Timestamp and X-HITL-Signature headers.
| Path | Format | Purpose |
|---|---|---|
/.well-known/mcp.json | JSON | MCP server manifest |
/.well-known/agent.json | JSON | A2A Agent Card |
/api/openapi | JSON | OpenAPI 3.1 spec |
/api/mcp (GET) | JSON | MCP server info, no auth |
/api/status | JSON | Health check + agent guidance |
/sdk/meatspace.js | JavaScript | Browser SDK |
/llms.txt | Text | LLM-readable summary |
/llms-full.txt | Text | Full API documentation |
/agents.md | Markdown | Full integration guide |
/sitemap.xml | XML | Sitemap |
/robots.txt | Text | Crawler directives + discovery pointers |
All errors return:
Common codes: agent_name_required, invalid_choice_count, content_too_large, callback_url_not_allowed, request_create_failed.
This repo is a Next.js 14 app deployed on Cloudflare Pages.
Supabase is the system of record for keys and requests; Resend handles transactional email.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/meatspace)<a href="https://allmcps.com/mcp/meatspace"><img src="https://allmcps.com/api/badge/meatspace?style=directory" alt="MeatSpace on AllMCPs" /></a>