MCP host integrations (OpenClaw, ZeroClaw, Hermes Agent, …)
Single entry point for wiring AINL into agent stacks that consume stdio ainl-mcp: upgrade ainlmcp from PyPI, merge mcp.servers.ainl (or YAML mcpservers.ainl on Hermes), install ainl-run under the host’s config tree, and
MCP host integrations (OpenClaw, ZeroClaw, Hermes Agent, …)
Single entry point for wiring AINL into agent stacks that consume stdio ainl-mcp: upgrade ainl[mcp] from PyPI, merge mcp.servers.ainl (or YAML mcp_servers.ainl on Hermes), install ainl-run under the host’s config tree, and suggest shell PATH updates.
Current PyPI release: ainativelang v1.3.3.
Two-step pattern (every host)
- Install and onboard the agent runtime using that product’s official docs (e.g. OpenClaw → openclaw.ai · Hermes Agent → github.com/NousResearch/hermes-agent).
- Add AINL using either:
- Skill folder: copy
skills/host/from this repo, thenchmod +x install.sh && ./install.sh, or - CLI:
pip install 'ainativelang[mcp]'thenainl install-mcp --host openclaw,zeroclaw, orhermes(seeainl install-mcp --list-hosts).
- Skill folder: copy
Legacy per-host commands remain aliases:
| Host | Unified CLI | Legacy alias |
|------|-------------|----------------|
| OpenClaw | ainl install-mcp --host openclaw | ainl install-openclaw |
| ZeroClaw | ainl install-mcp --host zeroclaw | ainl install-zeroclaw |
| Hermes Agent | ainl install-mcp --host hermes | ainl hermes-install |
List supported ids: ainl install-mcp --list-hosts.
Optional ainl run adapters (e.g. code_context): MCP install wires ainl-mcp and ainl-run; it does not enable optional adapters. Workflows that call R code_context.* (tiered repo index, dependencies, impact, COMPRESS_CONTEXT) must pass --enable-adapter code_context to ainl run or the host ainl-run shim (args forward). Guide: docs/adapters/CODE_CONTEXT.md.
Older ainl wheels may only expose install-openclaw / install-zeroclaw; those are equivalent—upgrade PyPI when you want install-mcp.
Adding a new host (maintainers)
- Add a
McpHostProfileentry intooling/mcp_host_install.py(PROFILES): dot-directory, JSON config filename,PATHline, success tip. - If the host needs extra files (like ZeroClaw’s repo bridge), branch on
host_idinrun_install_mcp_hostor call a small helper module (seetooling/zeroclaw_bridge.py). - Add
skills/host/mirroringskills/openclaw/(SKILL.md,README.md,install.sh) and a docdocs/<HOST>_INTEGRATION.md. - Register a thin
install-<host>subcommand incli/main.pyif you want a stable alias without typing--host.
Deep dives
- OpenClaw:
OPENCLAW_INTEGRATION.md—~/.openclaw/openclaw.json,~/.openclaw/bin/ainl-run. Cron/bridge (non-MCP):openclaw/bridge/README.md. Unified bridge & workspace automation:../ainl_openclaw_unified_integration.md(token tracker adapter,content-enginemodel override + budget guards,OPENCLAW_BIN/TOKEN_TRACKER_*). - ZeroClaw:
ZEROCLAW_INTEGRATION.md—~/.zeroclaw/mcp.json, optional[ainl_bridge]when run from a git checkout. - Hermes Agent:
HERMES_INTEGRATION.md— upstream github.com/NousResearch/hermes-agent ·~/.hermes/config.yaml(mcp_servers.ainl),~/.hermes/bin/ainl-run, and--emit hermes-skillbundles under~/.hermes/skills/ainl-imports/. - Operators / MCP templates:
operations/EXTERNAL_ORCHESTRATION_GUIDE.md.
