HAI-MCP
HAI-MCP is an open-source, model-agnostic MCP control-plane implementation of the Human Agent Interface (HAI). It governs how agentic work is authorized, scoped, recorded, and handed back to humans. It exposes tools for mission contracts, session leasing, activity classification, owner gates, evidence closure, and recovery, ensuring agents remain bounded and observable without executing work itself.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Checks and signals
Each line is separate evidence, not a trust score.
- Popularity 1 GitHub star
What you can do with it
- Define and manage time-bounded mission contracts
- Authorize agent sessions with owner-gated access
- Check for activity drift against mission scope
- Record evidence and close missions
Source and maintenance
- Last repository push
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
hai-mcp 0.1.0
{
"version": "0.1.0",
"transport": "stdio",
"identifier": "hai-mcp",
"runtimeHint": "uvx",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"environmentVariables": [
{
"name": "HAI_HOME",
"description": "Directory for the global HAI state (missions, leases, proofs). Default: ~/.hai"
},
{
"name": "HAI_OWNER_HOME",
"description": "Directory for the owner out-of-band channel (one-time nonces). Deliberately outside HAI_HOME. Default: ~/.hai-owner"
},
{
"name": "HAI_TRANSPORT",
"default": "stdio",
"description": "Transport selection: 'stdio' (default) or 'streamable-http'."
},
{
"name": "HAI_HTTP_HOST",
"default": "127.0.0.1",
"description": "Host for streamable-http transport. Refused unless loopback or HAI_HTTP_TOKEN is set."
},
{
"name": "HAI_HTTP_PORT",
"default": "8765",
"description": "Port for streamable-http transport."
},
{
"name": "HAI_HTTP_TOKEN",
"description": "Bearer token required to accept non-loopback streamable-http connections. Loopback binds without a token."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"hai-mcp": {
"command": "uvx",
"args": [
"hai-mcp==0.1.0"
],
"env": {
"HAI_HOME": "<YOUR_HAI_HOME>",
"HAI_OWNER_HOME": "<YOUR_HAI_OWNER_HOME>",
"HAI_TRANSPORT": "<YOUR_HAI_TRANSPORT>",
"HAI_HTTP_HOST": "<YOUR_HAI_HTTP_HOST>",
"HAI_HTTP_PORT": "<YOUR_HAI_HTTP_PORT>",
"HAI_HTTP_TOKEN": "<YOUR_HAI_HTTP_TOKEN>"
}
}
}
}Cline
{
"mcpServers": {
"hai-mcp": {
"command": "uvx",
"args": [
"hai-mcp==0.1.0"
],
"env": {
"HAI_HOME": "<YOUR_HAI_HOME>",
"HAI_OWNER_HOME": "<YOUR_HAI_OWNER_HOME>",
"HAI_TRANSPORT": "<YOUR_HAI_TRANSPORT>",
"HAI_HTTP_HOST": "<YOUR_HAI_HTTP_HOST>",
"HAI_HTTP_PORT": "<YOUR_HAI_HTTP_PORT>",
"HAI_HTTP_TOKEN": "<YOUR_HAI_HTTP_TOKEN>"
}
}
}
}VS Code
{
"servers": {
"hai-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"hai-mcp==0.1.0"
],
"env": {
"HAI_HOME": "<YOUR_HAI_HOME>",
"HAI_OWNER_HOME": "<YOUR_HAI_OWNER_HOME>",
"HAI_TRANSPORT": "<YOUR_HAI_TRANSPORT>",
"HAI_HTTP_HOST": "<YOUR_HAI_HTTP_HOST>",
"HAI_HTTP_PORT": "<YOUR_HAI_HTTP_PORT>",
"HAI_HTTP_TOKEN": "<YOUR_HAI_HTTP_TOKEN>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"hai-mcp": {
"command": "uvx",
"args": [
"hai-mcp==0.1.0"
],
"env": {
"HAI_HOME": "<YOUR_HAI_HOME>",
"HAI_OWNER_HOME": "<YOUR_HAI_OWNER_HOME>",
"HAI_TRANSPORT": "<YOUR_HAI_TRANSPORT>",
"HAI_HTTP_HOST": "<YOUR_HAI_HTTP_HOST>",
"HAI_HTTP_PORT": "<YOUR_HAI_HTTP_PORT>",
"HAI_HTTP_TOKEN": "<YOUR_HAI_HTTP_TOKEN>"
}
}
}
}Let your agent find its tools
Find servers like HAI-MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.