agent-eval-gate
agent-eval-gate
Codex、OpenAI互換エージェント、MCPクライアント向けのTrace Inspector + Eval Gate。 これは独立したMITライセンスの実装であり、制限されたソースコードを複製したり、公式のOpenAI/Codexプラグインであると主張したりするものではありません。
Install
Python 3.11+が必要です。
python -m pip install -e .
python -m pip install -e '.[dev]'Related MCP server: agent-eval-mcp
CLI
agent-eval-gate inspect fixtures/normal.jsonl
agent-eval-gate eval cases/safe_search.json
agent-eval-gate gate cases/budget_fail.json # exits 1 when a check fails
agent-eval-gate schema fixtures/normal.jsonlevalはJSONを出力し、情報提供を目的とします。gateはCIに適しており、失敗時に非ゼロを返します。
Trace schema
1行に1つのJSONオブジェクト。typeはrun、model_call、tool_call、tool_result、errorのいずれかです。
オプションフィールドには、id、parent_id、timestamp、status、tool、arguments、latency_ms、attempt、tokens: {input, output}、error_typeが含まれます。
メトリクスは、ツール呼び出し、一意のツール、繰り返される(tool, arguments)シグネチャ、再試行(attempt > 1)、レイテンシ、トークン合計、エラータイプ、正規化された失敗クラス、最終ステータス、コンテキスト予算の使用量をカウントします。コンテキスト予算は入力トークンと出力トークンの合計と比較されます。トークン化はプロデューサーに委任されるため、このツールは隠れたトークンを推定しません。
失敗クラスには、schema_error、permission_denied、timeout、tool_error、duplicate_operation、unknown_side_effect、model_error、unknownが含まれます。
Golden cases
ケースJSONはトレースとオプションの制約を指定します:expected_tools、forbidden_tools、max_tokens、max_steps、expected_final_status、context_budget。このリポジトリのフィクスチャは合成データであり、公開されています。
MCP
オプションのSDKをpip install -e '.[mcp]'でインストールし、python -m agent_eval_gate.mcp_serverを実行します。構造化JSONを返す読み取り専用のinspect_traceとevaluate_case_fileツールを公開します。MCPクライアントがこのコマンドを起動するように設定してください。公式プラグインとの関係は暗示されていません。
Codex integration
CLIはCodexスキルまたはプラグインから直接呼び出せます。最小限のスキルでagent-eval-gate inspect <trace>とagent-eval-gate gate <case>を呼び出せます。MCPサーバーはローカルのstdioサーバーとして登録できます。トレースとケースは呼び出し元のワークスペースに置いてください。
Architecture and development
JSONL -> parser -> typed events -> deterministic analysis -> eval checks -> CLI / MCP JSONpytest、ruff check .、mypy agent_eval_gateを実行します。GitHub Actionsはプッシュとプルリクエストでこれらのチェックを実行します。既知の制限:ベンダー固有のトレースアダプタなし、確率的スコアリングなし、生のプロンプトからのトークン再カウントなし。
中国語の説明
これは、Codex、OpenAI互換エージェント、MCPクライアント向けのTrace Inspector + Eval Gateの独立実装であり、MITライセンスを採用しています。OpenAIやCodexの公式プラグインではなく、制限されたリポジトリのコードを複製するものでもありません。
インストールにはPython 3.11+が必要です:python -m pip install -e .。inspectはJSONメトリクスを出力し、evalはgolden caseチェックを実行して表示し、gateは制約が失敗した場合に非ゼロの終了コードを返し、CIへの組み込みに適しています。イベントJSONLのtypeはrun、model_call、tool_call、tool_result、errorをサポートします。オプションフィールドには、ツール名、引数、レイテンシ、トークン、再試行回数、エラータイプが含まれます。メトリクスのトークンはプロデューサーが提供するtokens.inputとtokens.outputを使用し、本ツールは隠れたトークンを推測しません。
リポジトリのfixturesとcaseはすべて自作の公開データです。MCP SDKはオプションの依存関係であり、サービスはローカルのtraceとcaseを読み取り専用で分析します。現在の制限には、ベンダー固有のアダプタがないこと、確率的スコアリングがないこと、元のプロンプトからの再トークン化カウントがないことが含まれます。
This server cannot be installed
Maintenance
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
- AlicenseAqualityCmaintenanceA local MCP server that packages LLM evaluation gates as reusable CI/CD primitives, enabling AI agents to run datasets against models, score responses, and enforce quality thresholds.10MIT
- AlicenseBqualityBmaintenanceAn MCP-style stdio server for evaluating AI agent outputs, enabling CI-friendly quality gates, regression comparisons, and canary promotion decisions.3MIT
- AlicenseNot gradedqualityAmaintenanceEnables LLM evaluation and observability by uploading documents, building test sets, running RAG pipelines, and automatically scoring answers for groundedness, hallucination risk, retrieval quality, latency, and cost, with tools exposed to MCP-compatible clients.1MIT
- AlicenseAqualityAmaintenanceMCP server for gavel, a code-quality gate for Bazel monorepos. Exposes judge, findings, coverage and architecture tools so a coding agent can check its change against the quality gate (lint, coverage, layer rules) before declaring it done — all off the Bazel build graph, over just what changed.88Apache 2.0
Related MCP Connectors
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/dxwss/agent-eval-gate'
If you have feedback or need assistance with the MCP directory API, please join our Discord server