HAI-MCP
v0.1.0Model-agnostic MCP control plane for HAI: bounded missions, owner-gated actions, drift checks.
Values you need
| Variable | What it is | |
|---|---|---|
HAI_HOME | optional | Directory for the global HAI state (missions, leases, proofs). Default: ~/.hai |
HAI_OWNER_HOME | optional | Directory for the owner out-of-band channel (one-time nonces). Deliberately outside HAI_HOME. Default: ~/.hai-owner |
HAI_TRANSPORT | optional | Transport selection: 'stdio' (default) or 'streamable-http'. Default: stdio |
HAI_HTTP_HOST | optional | Host for streamable-http transport. Refused unless loopback or HAI_HTTP_TOKEN is set. Default: 127.0.0.1 |
HAI_HTTP_PORT | optional | Port for streamable-http transport. Default: 8765 |
HAI_HTTP_TOKEN | optional secret | Bearer token required to accept non-loopback streamable-http connections. Loopback binds without a token. |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add hai-mcp -- uvx hai-mcp==0.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"hai-mcp": {
"args": [
"hai-mcp==0.1.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"hai-mcp": {
"args": [
"hai-mcp==0.1.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"hai-mcp": {
"args": [
"hai-mcp==0.1.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.hai-mcp]
command = "uvx"
args = ["hai-mcp==0.1.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: hai_health, hai_status, hai_get_next_step, hai_read_artifacts, hai_park, hai_set_focus, hai_propose_next_step, hai_accept_next_step, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json