SecureAgentBench
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SecureAgentBenchrun task bug_001 and show me the failure classification"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentBench-MCP / SecureAgentBench
A deterministic, sandboxed evaluation control plane and Reinforcement Learning (RL) environment for autonomous software engineering agents interacting via the Model Context Protocol (MCP).
Key Highlights
Zero-Cost Local Evaluation: Built from the ground up for local LLMs via Ollama (
gemma,codestral,llama3,deepseek) with resilient JSON repair handling broken markdown fences and trailing commas. Token cost: $0.00.Multi-Ring Sandboxed Security: Ephemeral Docker sandbox containers (
agentbench-box), automated network air-gapping (disconnect_network()), path traversal defense (SEC-006), cgroups resource caps (1 CPU, 1GB RAM, 100 PIDs), and read-only test suite mounting.20-Task Golden Fixture Catalog: Real-world software engineering challenges across 6 core domains with visible, hidden generalization, and baseline regression test suites.
DMAIC Failure Taxonomy (F01–F12): Standardized root-cause failure classification engine diagnosing exactly why an agent failed (e.g.,
F05 Flawed Logic,F06 Blind Patch,F08 Regression Degradation).Gymnasium RL Harness (
SWEGymEnv): Standard OpenAI/Farama Gymnasium interface with multi-tier step and terminal rewards designed for RL fine-tuning (PPO / GRPO).Engineering Economic Value (EEV): Quantitative business metric tracking developer hours saved, capacity value created, and deducting production defect risk penalties.
Live Interactive Dashboard: High-contrast, clean web report at
http://localhost:8500featuring expandable inspection drawers with syntax-highlightedgit diffpatches, rawpytestterminal logs, and step-by-step MCP tool call transcripts.
Related MCP server: Coding Tools MCP
System Architecture
┌─────────────────────────────────────────────────────────────┐
│ Autonomous Agent │
│ (Local Ollama / Open Source Model) │
└──────────────────────────────┬──────────────────────────────┘
│ JSON-RPC 2.0 (MCP Protocol)
▼
┌─────────────────────────────────────────────────────────────┐
│ MCP Protocol Server / Harness │
│ (tools: repo.*, terminal.*) │
└──────────────────────────────┬──────────────────────────────┘
│ SEC-006 Path Validation
▼
┌─────────────────────────────────────────────────────────────┐
│ Air-Gapped Docker Sandbox Container │
│ (Isolated filesystem, No Network, cgroups caps) │
│ │
│ /workspace (Ephemeral) /tests (Read-Only Mount) │
│ ├── source code ├── test_visible.py │
│ └── dependencies ├── test_hidden.py │
│ └── test_regression.py │
└──────────────────────────────┬──────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Deterministic Evaluation Engine │
│ • Multi-Tier S_total (0-100%) │
│ • Failure Taxonomy Classifier (F01-F12) │
│ • Economic Value Calculation (EEV) │
│ • Interactive HTML Dashboard │
└─────────────────────────────────────────────────────────────┘20-Task Benchmark Catalog
ID | Domain | Name | Difficulty | Description |
| Bug Fix | FastAPI Stock Race Condition | L2 | Threading race condition where account balances turn negative under concurrency. |
| Bug Fix | TS Token Bucket Overflow | L2 | Integer arithmetic overflow in rate limiter token bucket allowing DDoS requests. |
| Bug Fix | Async Deadlock Resolution | L3 | Circular lock dependency in async banking transfer service causing thread hangs. |
| Bug Fix | Boundary Off-by-One | L1 | Off-by-one fencepost error causing array slice data truncation. |
| Bug Fix | Memory Leak Closure | L3 | Circular closure reference preventing garbage collection in async worker processes. |
| Feature | Keyset API Pagination | L2 | High-throughput cursor/keyset pagination replacing slow |
| Feature | Idempotency Middleware | L2 | HTTP |
| Feature | Event Bus Pattern | L3 | Pub-Sub asynchronous event bus with error boundary isolation. |
| Feature | Circuit Breaker | L2 | Fault-tolerant circuit breaker tripping OPEN after 5 failed upstream calls. |
| Repair | Pytest Brittle Mock Repair | L1 | Fix broken mock assertions after internal database private method rename. |
| Repair | Flaky Async Race Repair | L2 | CI/CD test failure caused by nondeterministic |
| Repair | Dependency Semver Conflict | L2 | Semantic versioning mismatch where Pydantic v1 imports break under v2. |
| Performance | SQL N+1 Query Elimination | L2 | Eliminates N+1 database queries using eager loading ( |
| Performance | ReDoS Catastrophic Backtrack | L3 | Fixes regular expression that locks 100% CPU on crafted malicious input. |
| Performance | Cache Stampede Defense | L3 | Prevents cache stampede thundering herds using probabilistic early expiration. |
| Refactoring | God Class Decomposition | L3 | Decomposes monolithic 800-line class into clean single-responsibility services. |
| Refactoring | Extract Strategy Pattern | L2 | Replaces nested |
| Security | Path Traversal Defense | L2 | Patches |
| Security | JWT None Algorithm Bypass | L3 | Rejects forged JWT tokens with |
| Security | SSRF Metadata Filter | L3 | Blocks Server-Side Request Forgery attempts targeting AWS metadata IP. |
Quickstart
1. Installation
git clone https://github.com/lawrenceemenike/AgentBench-MCP-SecureAgentBench.git
cd AgentBench-MCP-SecureAgentBench
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .2. Validate Benchmark Tasks
agentbench validate-tasks --tasks-dir=tasks3. Launch Live Dashboard
agentbench dashboard --port=8500Open http://localhost:8500 in your browser to inspect evaluation results, click any task row to see the git diff patch, pytest logs, and tool call transcripts.
4. Run an Agent Evaluation
agentbench run --agent="ollama:gemma4:12b" --tasks="tasks/bug_001_fastapi_race"Reinforcement Learning Environment (SWEGymEnv)
import gymnasium as gym
from src.gym.env import SWEGymEnv
env = SWEGymEnv(task_id="bug_001_fastapi_race", max_steps=20)
obs, info = env.reset()
# Step using MCP Tool Action
action = {
"name": "terminal.run_tests",
"arguments": {"test_target": "tests/test_concurrency.py"}
}
obs, reward, terminated, truncated, info = env.step(action)
print(f"Step Reward: {reward}, Terminated: {terminated}")License
Apache License 2.0. See LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
Hosted MCP for creating, checking, deploying, and hosting static sites for AI agents.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
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.465 PyPI1,125Apache 2.0
- FlicenseNot gradedqualityCmaintenanceA production-grade MCP server with 6 sandboxed tools and an agent orchestration engine for autonomous task completion, featuring an evaluation suite with CI/CD quality gates.-
- FlicenseNot gradedqualityBmaintenanceEnables reproducible evaluation of AI coding agents by exposing repository inspection, code editing, test running, and deterministic verification through MCP tools.-