agent-harnesses MCP server
Recommends, compares and searches agent harnesses from the curated best-of-Agent-Harnesses list
Agent evaluation and self-improvement harness exposed to MCP clients as scenarios, runs and judges
By Grey Haven TypeScript Local · stdio AI and MLTestingDeveloper tools
43 popularity score ★ 1.3k ↓ 209/wk
Opens the app, which asks before it adds the server. Then replace each <NAME> in its settings with your value.
It needs ANTHROPIC_API_KEY. Replace each <NAME> with your value.
claude mcp add autocontext -e ANTHROPIC_API_KEY=<ANTHROPIC_API_KEY> -- npx -y autoctx serve mcp{
"mcpServers": {
"autocontext": {
"command": "npx",
"args": [
"-y",
"autoctx",
"serve",
"mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}{
"mcpServers": {
"autocontext": {
"command": "npx",
"args": [
"-y",
"autoctx",
"serve",
"mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}{
"servers": {
"autocontext": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"autoctx",
"serve",
"mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}[mcp_servers.autocontext]
command = "npx"
args = ["-y", "autoctx", "serve", "mcp"]
[mcp_servers.autocontext.env]
ANTHROPIC_API_KEY = "<ANTHROPIC_API_KEY>"gemini mcp add --scope user -e ANTHROPIC_API_KEY=<ANTHROPIC_API_KEY> autocontext npx -- -y autoctx serve mcpANTHROPIC_API_KEY |
Required: Key for the default anthropic provider; the server exits at start without it. Not needed when another provider is chosen; AUTOCONTEXT_AGENT_API_KEY also works. |
|---|---|
AUTOCONTEXT_AGENT_PROVIDER |
Optional: Model provider: anthropic (default), openai, openai-compatible, gemini, mistral, groq, openrouter, azure-openai, ollama, vllm, hermes, claude-cli, codex, pi, pi-rpc or deterministic. |
AUTOCONTEXT_AGENT_API_KEY |
Optional: Generic API key used for whichever provider is selected. |
AUTOCONTEXT_AGENT_BASE_URL |
Optional: Endpoint for openai-compatible or self-hosted providers. |
AUTOCONTEXT_AGENT_DEFAULT_MODEL |
Optional: Model name to use instead of the provider's default. |
OPENAI_API_KEY |
Optional: Key read for the openai and openai-compatible providers when no generic key is set. |
AUTOCONTEXT_PI_COMMAND |
Optional: Command used to start Pi when the provider is pi. |
autocontext is a harness for making agents better at a task over repeated attempts. You give it a goal or a saved scenario; it has a model attempt the task, scores the attempts with a judge or in matches, keeps what worked as playbooks, hints and skill notes, and records dead ends so later runs skip them. Everything lands on disk as run folders, traces, reports and a SQLite database.
The npm package autoctx is mainly a CLI; `autoctx serve mcp` starts its MCP server over stdio. Through it a client can judge an output against a rubric, run improvement loops, start and watch scenario runs and tournaments, submit background solve jobs, read the knowledge earlier runs stored, run verifier-checked missions and campaigns, record human feedback, and manage a local store of production traces that can be turned into evaluation datasets.
The tool surface is much larger than the README suggests. The README says "40+ tools"; the server code at the ts-v0.19.0 tag registers 78 tool names: 75 tools plus `autocontext_solve_scenario`, `autocontext_solve_status` and `autocontext_solve_result`, which are snake_case-argument aliases of the solve tools (ts/src/mcp/server.ts and the files it imports). The server also announces itself to clients as version 0.2.3, a fixed string in server.ts, whatever the installed package version is.
| Runtime | Node.js 22+ |
|---|
Node.js 22.19.0 or newer (npx runs the autoctx package). A model provider: the server picks `anthropic` unless AUTOCONTEXT_AGENT_PROVIDER says otherwise, and exits at start without ANTHROPIC_API_KEY (or AUTOCONTEXT_AGENT_API_KEY). Other providers need their own key or a local endpoint (ollama, vllm); `deterministic` needs none but does no real model work. The claude-cli, codex and pi providers need those programs installed. Model calls cost money with paid providers.
Its own integration guide says users have had better results driving autocontext through the CLI than through MCP. The SQLite database, runs and knowledge folders default to runs/autocontext.sqlite3, runs and knowledge relative to the directory the client starts the server in (ts/src/config/app-settings-schema.ts), so different clients may write to different places. Some workflows (ecosystem, ab-test, resume, wait, trigger-distillation) and real model training exist only in the Python package. The instrument tool's own description says its detector plugin registry may ship empty, so a scan can find nothing.
Suits developers who already run autocontext and want an assistant to start runs, judge outputs and read back what earlier runs learned. It is local, writes files in its working directory and calls whichever model provider you configure, so plan for API costs. Anyone who only wants to grade a few outputs, or who prefers predictable scripting, may be better served by the autoctx CLI directly, as its own docs recommend; the Python package is the pick for training and the Python-only workflows.
evaluate_outputrun_improvement_looprun_repl_sessionqueue_taskget_queue_statusget_task_resultcapabilitieslist_scenariosget_scenariorevise_scenariolist_runsget_run_statusget_playbookrun_scenarioget_generation_detaillist_runtime_sessionsget_runtime_sessionget_runtime_session_timelinevalidate_strategyrun_matchrun_tournamentread_trajectoryread_hintsread_analysisread_toolsread_skillsexport_skilllist_solvedsearch_strategiesrecord_feedbackget_feedbackrun_replaysolve_scenariosolve_statussolve_resultsandbox_createsandbox_runsandbox_statussandbox_playbooksandbox_listsandbox_destroycreate_agent_tasklist_agent_tasksget_agent_taskgenerate_outputexport_packageimport_packagecreate_missionmission_statusmission_resultpause_missioncancel_missioncreate_campaigncampaign_progressinstrumentproduction_traces_ingestproduction_traces_listproduction_traces_build_datasetproduction_traces_exportproduction_traces_prune