Playwright Report MCP
Playwright Report MCP
Playwright の JSON テストレポートを LLM エージェント向けのツールとして公開する MCP サーバーです。
必要条件
Python >= 3.10
uv (
brew install uvまたはcurl -LsSf https://astral.sh/uv/install.sh | sh)Node.js + npx — MCP Inspector を起動する
mcp devでのみ必要
Related MCP server: Tesults MCP
1. 依存関係のインストール
リポジトリのルートから:
uv syncこれにより .venv/ が作成され、プロジェクトが編集可能モードでインストールされます。以下のすべてのコマンドは uv run 経由で実行されるため、venv を手動でアクティベートする必要はありません。
2. Playwright の JSON レポートを生成する
サーバーは json レポーターによって生成された Playwright レポートを読み取ります。Playwright プロジェクトでは:
npx playwright test --reporter=json > results.jsonまたは playwright.config.ts に恒久的に設定してください:
export default defineConfig({
reporter: [['json', { outputFile: 'results.json' }]],
});ファイルには標準のトップレベルキー config、suites、errors、stats が含まれている必要があります。
サーバーを試してみたいだけの場合は、サンプルレポートが results.json に同梱されています。
3. レポートのパスを設定する
リポジトリのルートに、そのレポートを指す .env ファイルを作成してください (絶対パスを推奨):
REPORT_PATH=/absolute/path/to/results.json代わりに同梱のサンプルを使用する場合:
REPORT_PATH=/absolute/path/to/playwright-test-analysis-mcp/src/playwright_report_mcp/results.jsonREPORT_PATH はツール呼び出しのたびに読み取られるため、サーバーを再起動せずにレポートを再生成できます。未設定の場合、ツール呼び出しは REPORT_PATH environment variable is not set. というエラーで失敗します。
4. サーバーを実行する
インタラクティブ開発 (MCP Inspector)
uv run mcp dev src/playwright_report_mcp/server.pyブラウザで MCP Inspector を開き、ツールを手動で一覧表示して呼び出すことができます。npx が必要です。
通常の stdio サーバー
uv run playwright-report-mcpまたは、同等に:
uv run mcp run src/playwright_report_mcp/server.pystdin/stdout を介して MCP プロトコルで通信します。MCP クライアントへの接続や、簡単なスモークテストに便利です:
printf '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}\n' \
| uv run playwright-report-mcp"serverInfo":{"name":"Playwright Report",...} を含む JSON-RPC の結果が返ってくるはずです。
クライアントに接続する
Claude Desktop にサーバーを登録してください:
uv run mcp install src/playwright_report_mcp/server.pyまたは、MCP クライアント設定 (例: claude_desktop_config.json) に手動で追加してください:
{
"mcpServers": {
"playwright-report": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/playwright-test-analysis-mcp",
"run",
"playwright-report-mcp"
]
}
}
}--directory が重要です: これにより uv がこのプロジェクトの venv を解決し、load_dotenv() が .env ファイルを見つけられるようになります。
ツール
ツール | 説明 |
| 最新の実行の概要: |
| 失敗したテストのリスト。各テストには |
テストの実行
pytest と pytest-asyncio はインストールされていますが、リポジトリにはまだテストファイルがないため、現在は 0 個のテストが収集されます:
uv run pytestトラブルシューティング
症状 | 修正方法 |
| リポジトリのルートに |
ツール呼び出し時の |
|
| JSON が Playwright の |
|
|
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables LLMs to explore and analyze UK Government BEIS inspect_ai evaluation logs directly from tools like Claude Code and Cursor. It provides capabilities to list logs, view evaluation summaries, and inspect conversation histories for specific samples.6MIT

Tesults MCPofficial
AlicenseNot gradedqualityDmaintenanceConnect AI agents to your test results, insights, and targets. Query test runs, failures, flaky tests, and regressions across frameworks including Playwright, Jest, Pytest, Cypress and more.37MIT- FlicenseAqualityDmaintenanceEnables AI agents to run reusable Playwright test fixtures against live deployments, providing structured test results, screenshots, and assertions.3
- AlicenseBqualityBmaintenanceSupercharges AI-assisted debugging of Playwright tests by parsing trace files to extract failures, action history, network logs, screenshots, and suggesting fixes.612MIT
Related MCP Connectors
Browser-backed QA with evidence and fix-ready reports for coding agents.
Playwright selector risk checks with healing suggestions and receipts.
BuildPulse CI test analytics for AI agents — flaky tests, coverage, and CI run history.
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/nora-weisser/playwright-test-analysis-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server