Back to Home
scalvert icon

playwright-mcp-evals

Verified Safe

by scalvert

Overview

A Playwright-based testing framework for evaluating and validating Model Context Protocol (MCP) servers, including tool calls, conformance, and LLM-driven scenarios.

Installation

Run Command
npm test

Environment Variables

  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • MCP_ACCESS_TOKEN
  • MCP_REFRESH_TOKEN
  • MCP_TOKEN_TYPE
  • MCP_TOKEN_EXPIRES_AT
  • MCP_OAUTH_SERVER_URL
  • MCP_AUTH_STATE_PATH
  • MCP_OAUTH_CLIENT_ID
  • MCP_OAUTH_CLIENT_SECRET
  • MCP_OAUTH_SCOPES
  • MCP_OAUTH_RESOURCE
  • CI
  • OAUTH_DEBUG

Security Notes

The framework itself is a test client. The stdio transport allows executing arbitrary local commands defined in `mcpConfig`, which is an expected feature for testing local servers, not a vulnerability, assuming trusted configuration inputs. LLM integration (OpenAI/Anthropic) requires API keys loaded from environment variables. OAuth authentication involves opening a browser and running a local HTTP callback server, which is a standard process. No direct `eval()` or obfuscation was found. The primary risk comes from configuring the `command` field in `mcpConfig` (for stdio transport) with an untrusted source, which could lead to arbitrary code execution outside the scope of the framework's direct operation.

Similar Servers

Stats

Interest Score14
Security Score8
Cost ClassHigh
Avg Tokens1500
Stars3
Forks0
Last Update2025-12-18

Tags

PlaywrightMCPTestingEvaluationDeveloper Tools