Metaharness
MCP server by ruvnet Verified · npm:metaharness
Scaffold, check and score a custom AI agent harness for a repo. Use it to generate an npm-publishable harness for Claude Code, OpenAI Codex and other supported hosts.
Install Metaharness
Built from the published package, never by AI.
claude mcp add metaharness -- npx -y metaharnessRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"metaharness": {
"args": [
"-y",
"metaharness"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"metaharness": {
"args": [
"-y",
"metaharness"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"metaharness": {
"args": [
"-y",
"metaharness"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add metaharness -- npx -y metaharness{
"mcpServers": {
"metaharness": {
"args": [
"-y",
"metaharness"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add metaharness npx -y metaharnessGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the metaharness block.
About
MetaHarness mints a custom AI agent harness for a repo, from a GitHub URL or a blank slate. The output is an npm-publishable package with the owner's name, branding and CLI. The harness can include recommended agents, skills, slash commands and MCP tools, a scoped memory namespace, a governance policy, and witness-signed provenance with release gates.
The generated harness can run on Claude Code, OpenAI Codex, pi.dev, Hermes, OpenClaw, RVM or Prime Agent. The `npx metaharness score <repo>` command reads a repo without running it and reports how well a harness fits, how likely it is to build, how safe the tools are, and the rough cost per run. The `harness doctor` and `harness validate` commands keep a generated harness healthy as it is trimmed.
It is aimed at teams that want a repo-specific agent setup they can own, version and share across an organization.
Written from the project's README and checked against it.
Tools it gives your assistant
npx metaharnessGenerates a custom agent harness for a repo, opened in the browser Studio or run from the CLI.npx metaharness score <repo>Reads a repo without running it and prints a report card with fit, build likelihood, tool safety and cost per run.harness doctor / harness validateChecks a generated harness for health and validity as its contents are changed.npm run evolveRuns Darwin Mode, which tests config changes in a sandbox and keeps only measurable improvements.
What you need
- Node.js with npx
- npm, to publish a generated harness as a package
Try asking
- Score this repo with metaharness before I scaffold an agent for it
- Generate a Claude Code harness for my repo using metaharness
- Run harness doctor on my generated agent harness and report problems
Good to know
- Several packages are marked private and experimental, and make no ARC performance claim.
- The field-memory flag is off by default and needs a storage path and principal verifier before use.
- Weight-EFT tuning is GPU-gated.
- Prime Agent has no MCP, so its tools ship as project-scoped skills.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Metaharness
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Metaharness: common questions
Does MetaHarness need an API key to run?
The source says Darwin Mode is safe by default with no network and no API key. The source does not state API key requirements for the whole tool.
Which hosts can a generated harness run on?
The source lists Claude Code, OpenAI Codex, pi.dev, Hermes, OpenClaw, RVM and Prime Agent. Users can pick one or all.
Does the score command run my repo?
No. The source says `npx metaharness score <repo>` reads the repo and never runs it.
How do I install Metaharness?
In Claude Code run claude mcp add metaharness -- npx -y metaharness. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Metaharness the official server?
Metaharness is published by npm:metaharness from its verified domain in the official MCP Registry.
Is Metaharness free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Metaharness safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Metaharness?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Metaharness work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
