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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heed_mcp-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

heed_mcp-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file heed_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: heed_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for heed_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d6ca4b5e28cd0df8ef5b3dbe15d7075f1ee633a07cfc3b5c9fc35a3b2a70374
MD5 f242eb7ab732b2df0a408d6312fde059
BLAKE2b-256 17d99cc97ca9f7aba722a569aa554e3e547737838062a378f2459fa8d63a5589

See more details on using hashes here.

File details

Details for the file heed_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: heed_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for heed_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 883596e8ee26ef16c23c424060a54808471a19fa327ceb24e91e10a898fff3e4
MD5 d3f038308b89455fe277c8b50d35d21d
BLAKE2b-256 225ddde7f62ac53f71fcc59171a2e93c32d9c79514f758366a5ac4e2db8b5275

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page