Skip to main content
Glama
Philippe012

MCP Software-Engineering RL Environment

by Philippe012

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

ベンチマークのアイデア

評価のエピソードは次の通りです:

  1. リポジトリをタスクのシードにリセットする。

  2. エージェントにタスク文のみを与の。

  3. MCPサーバを起動する。

  4. エージェントはMCPを用いてファイルを調べる。

  5. エージェントは不具合を診断してコードを編集する。

  6. エージェントはテストを実行する。

  7. 決定的検証器が報酬を計算する。

簡単な報酬の例:

reward = 0.50 * tests + 0.20 * regression_test + 0.15 * tool_use + 0.15 * patch_quality

重要なのは、検証が決定的であることです。モデルが自身を採点することはありません。

F
license - not found
Not graded
quality - not tested
C
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

  • A
    license
    Not graded
    quality
    B
    maintenance
    Empower any MCP-compatible AI Agent(MCP Client) with engineering-grade capabilities to understand, modify, run, and deliver real-world code repositories.
    825
    Apache 2.0
  • A
    license
    A
    quality
    A
    maintenance
    Provides AI coding agents with five intelligence layers (dependency graph, git history, documentation, architectural decisions, code health) via nine MCP tools, enabling deep codebase understanding and reducing exploration cost.
    11
    6,181
    AGPL 3.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to search code by meaning, explore codebase structure, store and query knowledge with temporal facts, and read source code through a set of MCP tools.
    453
    7
    MIT

View all related MCP servers

Related MCP Connectors

  • Hosted MCP for creating, checking, deploying, and hosting static sites for AI agents.

  • Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

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/Philippe012/MCP-Agent'

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