Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 770 stars
  • 58k a week
  • MIT
  • Updated

Install Metaharness

Built from the published package, never by AI.

claude mcp add metaharness -- npx -y metaharness

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Metaharness in Claude Code

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

A

No 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 →

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.

Metaharness Install

Add to stack

Loading.