MCP Software-Engineering RL Environment
MCPソフトウェアエンジニアリングRL環境(ミニプロジェクト)
Model Context Protocol(MCP)を通じてAIコーディングエージェントを評価するための、再現可能なベンチマーク環境です。
エージェントはタスクを受け、MCPツールでリポジトリの情報を調べ、コードを編討し、決定的な検証を実行します。ベンチマークは、エージェントがツールを正しく使用したかどうか、そして最終的なリポジトリが仕様を満たしているかどうかを記録します。
シナリオ
リポジトリには、小さな在庫サービスが含まれています。特定の商品が複数のタグにマッチすると、其の製品が複数回台出ることがある、というバグが含まれています。エージェントはバグを診断し、既存機能を損しない修正を実装し、リグレッション・テストを追加する必要があります。
Related MCP server: Coding Tools MCP
環境契約
エージェントは、以下のMCPツールを利用できます:
list_files()- リポジトリの構造を確認するread_file(path)- リポジトリ内のファイルを読むsearch_code(query)- ソースコードを検索するwrite_file(path, content)- ファイルを変更・作成するrun_tests()- 決定的なテストを実行するgit_diff()- 変更内容を確認する
環境自体は verify.py で結果を検証します。正解ソリューションは、golden/solution.patch に別途保存されます。
実行
python -m venv .venv
# Linux/macOS
source .venv/bin/activate
# Windows PowerShell: .venv\\Scripts\\Activate.ps1
pip install -r requirements.txt
python -m mcp_rl_env.server別のターミナルで:
python verify.py参考ソりューションを実行:
python apply_golden.py
python verify.pyベンチマークのアイデア
評価のエピソードは次の通りです:
リポジトリをタスクのシードにリセットする。
エージェントにタスク文のみを与の。
MCPサーバを起動する。
エージェントはMCPを用いてファイルを調べる。
エージェントは不具合を診断してコードを編集する。
エージェントはテストを実行する。
決定的検証器が報酬を計算する。
簡単な報酬の例:
reward = 0.50 * tests + 0.20 * regression_test + 0.15 * tool_use + 0.15 * patch_quality
重要なのは、検証が決定的であることです。モデルが自身を採点することはありません。
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for building and testing AI agents with multi-model experimentation and insights.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
A full backend your AI coding agent can set up over MCP
Related MCP Servers
AlicenseAqualityAmaintenanceMCP server that gives AI coding agents direct access to evaluation tools.23Apache 2.0- AlicenseNot gradedqualityBmaintenanceEmpower any MCP-compatible AI Agent(MCP Client) with engineering-grade capabilities to understand, modify, run, and deliver real-world code repositories.206 PyPI1,208Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables deterministic evaluation of coding agents by exposing controlled repository tools and returning structured verification reports with pattern checks and repeat-run comparisons.MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to access unified development tools including code generation, documentation synchronization, test case rendering, and architecture graph queries through a single MCP server.-