Skip to main content
Glama
Philippe012

MCP Software-Engineering RL Environment

by Philippe012

MCP Software-Engineering RL Environment (Mini Project)

A reproducible benchmark environment for evaluating an AI coding agent through Model Context Protocol (MCP).

The agent receives a task, discovers repository information through MCP tools, edits code, and runs deterministic verification. The benchmark records whether the agent used the tools correctly and whether the final repository satisfies the specification.

Scenario

The repository contains a small inventory service. InventoryService.search() is intentionally buggy: when a product has multiple matching tags, it can appear more than once. The agent must diagnose the bug, implement a feature-safe fix, and add a regression test.

Related MCP server: Coding Tools MCP

Environment contract

The agent can use these MCP tools:

  • list_files() - inspect repository structure

  • read_file(path) - read repository files

  • search_code(query) - search source code

  • write_file(path, content) - modify/create files

  • run_tests() - run deterministic tests

  • git_diff() - inspect changes

The environment itself verifies the result with verify.py. The golden solution is stored separately in golden/solution.patch.

Run

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

In another terminal:

python verify.py

Run the reference solution:

python apply_golden.py
python verify.py

Benchmark idea

An evaluation episode is:

  1. Reset repository to the task seed.

  2. Give the agent only the task statement.

  3. Start the MCP server.

  4. Agent discovers files using MCP.

  5. Agent diagnoses and edits code.

  6. Agent runs tests.

  7. Deterministic verifier computes reward.

A simple reward can be:

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

The important point is that verification is deterministic; the model does not grade itself.

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