Skip to main content

Heed MCP Server

Human approval as a native agent tool. Exposes the Heed HITL API over MCP so Claude Code, Cursor, and any MCP-compatible agent can pause for human sign-off before risky actions.

Install

pip install heed-mcp

Or without installing globally:

uvx heed-mcp

Tools

Tool Purpose
request_approval(action, summary, context?, priority?, mode?, grace_seconds?) Submit an action for approval. Returns {status: "approved", auto_approved: true} when no policy matches, else {status: "pending"|"grace_pending", poll_url, expires_at}.
check_approval(request_id) Poll a submitted request until a human decides (or the grace window auto-approves).

Configuration

Env var Required Description
HEED_API_KEY ✅ Tenant API key (hd_live_... / hd_test_...) — from https://heed.run/signup
HEED_BASE_URL ☑️ API base URL (default https://heed.run)
HEED_AGENT_ID ☑️ Agent identifier shown in the dashboard (default mcp-agent)

Claude Code setup

pip install heed-mcp
claude mcp add heed \
  -e HEED_API_KEY=hd_live_your_key_here \
  -e HEED_BASE_URL=https://heed.run \
  -- heed-mcp

Or add to .mcp.json in your project:

{
  "mcpServers": {
    "heed": {
      "command": "heed-mcp",
      "env": {
        "HEED_API_KEY": "hd_live_your_key_here",
        "HEED_BASE_URL": "https://heed.run"
      }
    }
  }
}

Development

From the monorepo (install SDK first):

make install
HEED_API_KEY=hd_test_... HEED_BASE_URL=http://localhost:8000 venv/bin/heed-mcp

Install heed-mcp into its own virtualenv (or use uvx). Installing into the API venv can upgrade starlette past what the pinned FastAPI version supports.

Publish

./scripts/publish.sh

Requires build and twine, plus PyPI token in TWINE_PASSWORD.

Metadata

Release files for heed-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heed-mcp 0.1.0
File Size Uploaded Provenance Actions
heed_mcp-0.1.0.tar.gz 3.7 kB Without provenance Details for heed_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for heed-mcp 0.1.0
File Interpreter ABI Platform Actions
heed_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for heed_mcp-0.1.0-py3-none-any.whl

Total release size: 7.9 kB

Release files / heed_mcp-0.1.0.tar.gz

Download URL heed_mcp-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8d6ca4b5e28cd0df8ef5b3dbe15d7075f1ee633a07cfc3b5c9fc35a3b2a70374
BLAKE2b-256 checksum
How to use checksums
17d99cc97ca9f7aba722a569aa554e3e547737838062a378f2459fa8d63a5589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / heed_mcp-0.1.0-py3-none-any.whl

Download URL heed_mcp-0.1.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
883596e8ee26ef16c23c424060a54808471a19fa327ceb24e91e10a898fff3e4
BLAKE2b-256 checksum
How to use checksums
225ddde7f62ac53f71fcc59171a2e93c32d9c79514f758366a5ac4e2db8b5275
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for heed-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page