HAI-MCP

v0.1.0
io.github.smlfg/hai-mcp Checked 4 days ago Published 1 month ago

Model-agnostic MCP control plane for HAI: bounded missions, owner-gated actions, drift checks.

Values you need

VariableWhat it is
HAI_HOMEoptional Directory for the global HAI state (missions, leases, proofs). Default: ~/.hai
HAI_OWNER_HOMEoptional Directory for the owner out-of-band channel (one-time nonces). Deliberately outside HAI_HOME. Default: ~/.hai-owner
HAI_TRANSPORToptional Transport selection: 'stdio' (default) or 'streamable-http'. Default: stdio
HAI_HTTP_HOSToptional Host for streamable-http transport. Refused unless loopback or HAI_HTTP_TOKEN is set. Default: 127.0.0.1
HAI_HTTP_PORToptional Port for streamable-http transport. Default: 8765
HAI_HTTP_TOKENoptional 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.0
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. 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, ….
  4. 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