Skip to main content
MCP server CX Codex

behave — Claude Code MCP server: what it does, how to install

behave is a Claude Code MCP server that captures CLI execution outputs and verifies that rewrites or refactored tools match the original behaviour.

MIT ★ 6 updated 2026-11-15

Open on GitHub

What behave does

behave inspects command-line binaries as black boxes by parsing man pages and --help output. It creates test cases with varying parameters, malformed inputs, and edge stdin data, recording exit codes alongside standard output and standard error.

The MCP interface exposes probing, recording, and differential validation over stdio. When comparing a rewrite against the reference binary, passing --skip-tag meta ignores intentional phrasing differences in version and help text.

All executions run inside fresh temporary folders. Tools modifying paths outside their working directory require an isolated sandbox or explicitly skipped flags.

What it helps with

  • record golden test baselines directly from existing command-line binaries
  • detect behavioral discrepancies between a legacy CLI and a Rust or Go rewrite
  • track differences in exit codes, stdout, and stderr during CLI refactoring
  • generate test permutations automatically from man pages and help flags

Example prompts for the agent

  • Compare ./target/release/sort against the recorded GNU sort baseline
  • Probe jq behavior using sample arguments like . and keys
  • Check ./uu/cut compatibility against the recorded cut suite without checking help text

How to install behave

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about behave

What does the behave MCP server do?

It gives coding agents tools to probe CLI tools, record golden test cases, and diff outputs against alternative implementations.

How do you install and run behave?

Install the binary via brew install emirmrkaljevic/tap/behave or go install github.com/emirmrkaljevic/behave/cmd/behave@latest, then configure the agent to start behave mcp.

What precautions are required when probing tools with behave?

Tests run in temporary directories, meaning commands capable of mutating files outside the project root need a sandbox and skipped destructive flags.

Similar MCP servers

All MCP servers for Testing and QA →

Project sponsors

Companies that keep this analytics open