Installation
Requirements
Section titled “Requirements”- Node.js 20 or newer
- npm
- Git
- Docker only when your harness uses containerized infrastructure
ANTHROPIC_API_KEYonly for built-in--autoadaptation
Install from npm
Section titled “Install from npm”npm install -g @osfactory/har@latesthar --versionHAR’s CLI, MCP server, bundled harness profiles, and Mission Control launcher ship
in the same @osfactory/har package.
Install from source
Section titled “Install from source”git clone https://github.com/os-factory/har.gitcd harnpm installnpm run buildnpm linkRe-run npm run build after source changes. Remove the global link with:
npm unlink -g @osfactory/harConnect an MCP client
Section titled “Connect an MCP client”Start HAR as a stdio MCP server:
har mcp --repo /absolute/path/to/your/repositoryFor clients that accept JSON MCP configuration:
{ "mcpServers": { "har": { "command": "har", "args": ["mcp", "--repo", "/absolute/path/to/your/repository"] } }}The configured repository is the default. Every MCP tool also accepts a repo
argument, so one server can operate another harness explicitly.
Upgrade
Section titled “Upgrade”npm install -g @osfactory/har@latesthar env maintainUpdating the package never silently overwrites an adapted .har/ directory. Use
maintain to inspect template drift and apply updates deliberately.
