Skip to main content
Glama

MCP Agent Evaluation Harness

A compact reference project for evaluating coding agents that use Model Context Protocol tools. The harness gives an agent controlled repository access, runs repeatable checks, compares repeated executions, and returns a structured verification report.

What the project demonstrates

  • An MCP server with repository listing, reading, searching, and verification tools

  • Root-confined file access with traversal protection

  • Deterministic command execution with fixed locale, timezone, and Python hash seed

  • Required and forbidden code-pattern checks

  • Repeat-run comparison for nondeterminism detection

  • Golden reference material for a reproducible bug-fixing task

  • Standard-library unit tests and a continuous integration workflow

Related MCP server: phionyx-pipeline-mcp

Architecture

MCP client or coding agent
          |
          v
Repository MCP tools
          |
          v
SafeWorkspace boundary
          |
          v
DeterministicVerifier
          |
          v
Structured VerificationReport

The core verifier has no third-party dependency. The MCP adapter uses the official Python SDK v2.

Quick start

Run the unit tests.

python -m unittest discover -s tests -v

Run the included evaluation task.

PYTHONPATH=src python -m mcp_eval_harness.cli verify \
  examples/rounding-bug/task.json \
  examples/rounding-bug/workspace

Install the MCP adapter and start the stdio server.

python -m pip install -e ".[mcp]"
mcp-eval serve

MCP tools

Tool

Purpose

list_repository_files

Return a stable, sorted file list under the configured root

read_repository_file

Read one UTF-8 file while blocking path traversal

search_repository

Find literal text with deterministic ordering and result limits

verify_solution

Run the task specification and return a structured report

Task specification

Each task is JSON and declares the files, code requirements, verification command, timeout, and repeat count.

{
  "task_id": "decimal-rounding-fix",
  "required_files": ["calculator.py", "test_calculator.py"],
  "required_patterns": {"calculator.py": ["Decimal", "ROUND_HALF_UP"]},
  "forbidden_patterns": {"calculator.py": ["round("]},
  "command": ["python", "-m", "unittest", "discover", "-s", ".", "-p", "test_*.py"],
  "timeout_seconds": 10,
  "repeat_count": 2
}

Security boundary

The path checks protect the configured repository root. The command verifier is designed for trusted local task definitions. Run untrusted candidate code inside a container or another operating-system sandbox.

Author

Mohammed Ibrahim Sadiq

License

MIT

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Deterministic AI code review, with an audit record. Governance inside the agent loop.

  • Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.

  • Evaluate, benchmark, and simulate AI agents on the VerifyAX agent-evaluation platform.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mohammedibrahim111/mcp-agent-evaluation-harness'

If you have feedback or need assistance with the MCP directory API, please join our Discord server