# NazarKalytiuk/tarn [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/NazarKalytiuk/tarn  
**GitHub Stars:** 6  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nazarkalytiuk-tarn

## Description
CLI-first API testing tool with structured JSON failures (failurecategory, errorcode, hints) so AI agents can branch on the taxonomy without parsing stderr. MCP tools: tarnrun, tarnvalidate, tarnfixplan, tarninspect, tarnrerunfailed, and more. Tests are .tarn.yaml. Single static binary (musl), MIT.

## Tools
Capabilities this server exposes over MCP:

- **tarn_run** — Run tests, returns structured JSON results
- **tarn_validate** — Validate YAML syntax without executing
- **tarn_list** — List all tests and their steps
- **tarn_fix_plan** — Analyze a Tarn JSON report and return prioritized next actions

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What NazarKalytiuk/tarn MCP server does

NazarKalytiuk/tarn MCP server connects an MCP-capable agent to Tarn API test projects. Tarn tests are written as `.tarn.yaml` files, allowing an agent to create or modify requests and assertions in a format that can be reviewed and versioned alongside application code.

The server focuses on an agent-oriented test loop: discover the available tests, check a file before execution, run the suite, and use structured results to decide what to change next. Run results include categorized failures, error codes, remediation hints, and request or response context, so clients can branch on stable fields instead of scraping terminal output.

## How it works

The MCP companion exposes operations for running tests, validating YAML, listing test definitions and their steps, and analyzing a Tarn JSON report. `tarn_run` executes tests and returns structured JSON results. `tarn_validate` checks YAML syntax without running the test. `tarn_list` reports the tests and steps available to run. `tarn_fix_plan` reads a Tarn report and produces prioritized next actions.

The underlying CLI runs `.tarn.yaml` files under a project’s test directory. It can emit JSON for machine processing and supports a failures-first workflow through the broader Tarn CLI, including focused inspection and rerunning failed file-and-test pairs.

## Setup and configuration

Install Tarn on macOS or Linux with the project’s shell installer, or build it from source with Cargo. Release archives are also available for macOS, Linux, and Windows. The archive can include `tarn-mcp`; the installer places that companion alongside the main binary when present. Set `TARN_INSTALL_DIR` when the binaries need to be installed in a non-default location.

A new project can be scaffolded with `tarn init`, which creates a `tests/` directory, `tarn.env.yaml`, and example templates. Set the API base URL in the environment configuration, then run the tests with Tarn.

## Tools and capabilities

NazarKalytiuk/tarn MCP server provides these documented tools:

- `tarn_run` — execute API tests and return JSON results.
- `tarn_validate` — check YAML syntax without executing tests.
- `tarn_list` — list test files, tests, and steps.
- `tarn_fix_plan` — analyze a Tarn JSON report and return ordered remediation actions.

The CLI can run every test or selected paths, use named environments, emit compact JSON, rerun only failures, watch for file changes, and execute files in parallel. Tarn’s failure model includes stable categories and error codes, while downstream skipped steps can be represented as cascades from an upstream failure.

## Limitations and notes

The MCP tools operate on Tarn test files and reports; they do not replace the Tarn CLI or create a separate API test format. The project’s documented agent list includes Claude Code, Codex, Cursor, and Windsurf for the MCP integration. Pi is described as using the Tarn skill and CLI rather than native MCP, with an adapter available optionally.

`TARN_INSTALL_DIR` changes installation location; it is not presented as a runtime requirement. A reachable API and suitable project configuration are still needed for meaningful test execution, while YAML validation can be performed without making test requests.

_Full upstream README: https://allmcps.com/mcp/nazarkalytiuk-tarn/readme_

