npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@coval/mcp-server

v0.4.0

Published

Coval MCP Server - AI evaluation platform integration for Claude Desktop, Cursor, and other MCP clients

Downloads

144

Readme

Coval MCP Server

npm version

The official Model Context Protocol server for Coval - the AI evaluation platform.

This MCP server allows AI assistants like Claude, ChatGPT, Codex, and Cursor to interact with Coval's evaluation APIs, enabling you to:

  • Launch and monitor evaluation runs
  • Manage AI agents and test sets
  • Retrieve evaluation metrics and results
  • Inspect saved reports and recurring evaluation schedules

Hosted connector

The hosted connector is the recommended way to use Coval from Claude, ChatGPT, and other remote MCP clients. It uses OAuth, so users sign in to Coval and select the organization the connector can access. No Coval API key is copied into the client.

Standard MCP endpoint: https://mcp.coval.dev/mcp

Claude hosted endpoint: https://mcp.coval.dev/claude/mcp

Claude

  1. Open Customize > Connectors. Team and Enterprise owners add the connector first from Organization settings > Connectors.
  2. Add a custom web connector using https://mcp.coval.dev/claude/mcp.
  3. Select Connect, sign in to Coval, and choose the Coval organization to authorize.
  4. Enable the connector in a conversation and ask Claude to use Coval or Sofia.

See Claude's remote MCP connector guide for current plan and administration requirements.

ChatGPT

  1. Enable developer mode for your ChatGPT workspace account.
  2. From Settings > Apps, create an app using https://mcp.coval.dev/mcp and OAuth.
  3. Select Scan Tools, sign in to Coval, and choose the Coval organization to authorize.
  4. Create the app, then enable it in a conversation.

See ChatGPT's MCP app guide for current plan and workspace requirements.

Codex

Use Codex 0.144.2 or newer. Current Codex Desktop releases include a compatible client. For the CLI, update before connecting:

npm install -g @openai/codex@latest
codex mcp add coval --url https://mcp.coval.dev/mcp

When the browser opens, sign in to Coval, select the organization Codex should access, and select Allow. Codex Desktop, the Codex CLI, and the IDE extension share MCP configuration on the same machine, so the connection is available across those clients after they restart.

In Codex Desktop, you can also add Coval from Settings > MCP servers as a Streamable HTTP server using https://mcp.coval.dev/mcp, then select Authenticate.

If OAuth returns invalid_scope, first confirm codex --version is 0.144.2 or newer. Older clients registered a dynamic OAuth client without all the scopes they requested during consent. After updating, clear the stale registration and reconnect:

codex mcp logout coval
codex mcp remove coval
codex mcp add coval --url https://mcp.coval.dev/mcp

No API key, manual scope list, or oauth_resource override is required. See Codex's MCP documentation for current client setup details.

Local installation

npx @coval/mcp-server

Use the local stdio server for service accounts, automation, and clients that do not support remote OAuth.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "coval": {
      "command": "npx",
      "args": ["-y", "@coval/mcp-server"],
      "env": {
        "COVAL_API_KEY": "your_api_key_here"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "coval": {
      "command": "npx",
      "args": ["-y", "@coval/mcp-server"],
      "env": {
        "COVAL_API_KEY": "your_api_key_here"
      }
    }
  }
}

Get your API key from app.coval.dev/settings

Available Tools

| Tool | Description | |------|-------------| | list_agents | List all agents in your workspace | | get_agent | Get details of a specific agent | | create_agent | Create an agent configuration | | update_agent | Update an agent configuration | | list_runs | List evaluation runs | | get_run | Get details of a specific run | | create_run | Start a new evaluation run | | list_test_sets | List available test sets | | get_test_set | Get test set details | | create_test_set | Create a test set | | list_test_cases | List test cases in a test set | | get_test_case | Get test case details | | create_test_case | Add a test case to a test set | | update_test_case | Update a test case | | list_metrics | List evaluation metrics | | get_metric | Get metric details | | list_personas | List available personas | | get_persona | Get persona details | | list_reports | List saved evaluation reports | | get_report | Get report details and a bounded page of result rows | | create_report | Create an organization-private saved report | | list_run_templates | List reusable evaluation configurations | | list_scheduled_runs | List recurring evaluation schedules | | get_scheduled_run | Get a schedule and paginated recent-run history | | create_scheduled_run | Create a schedule, disabled by default | | update_scheduled_run | Update selected schedule fields | | consult_sofia | Delegate a read-only Coval evaluation question to Sofia |

Example Usage

Once connected, you can ask Claude things like:

"Show me my recent evaluation runs" "List all my agents" "Run an evaluation of my customer-support-agent against the billing-inquiries test set" "What are the metrics for run abc123?" "Show the first 20 rows of my regression report for the task-success metric" "Create a private report comparing these completed runs by agent" "Show my enabled evaluation schedules and the latest runs from the nightly regression" "Create a disabled weekday schedule from my regression run template" "Use consult_sofia to analyze my latest failed run and recommend the most useful next test."

The same tools, including consult_sofia, are available through every supported endpoint and transport:

  • Standard remote Streamable HTTP: https://mcp.coval.dev/mcp using OAuth. This is the recommended connection for ChatGPT, Codex, and other hosted MCP clients.
  • Claude remote Streamable HTTP: https://mcp.coval.dev/claude/mcp using the same OAuth flow and tool surface, with Claude-specific risk annotations.
  • Local stdio: npx @coval/mcp-server with COVAL_API_KEY, for service accounts and local development.

The hosted connector can access only the Coval organization selected during OAuth consent. Remove the connector from the client or revoke its Coval access when it is no longer needed.

Development

# Install dependencies
npm install

# Build
npm run build

# Test locally with MCP Inspector
npm run inspector

# Run tests
npm test

# Check the public health and OAuth discovery endpoints
npm run check:remote

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | COVAL_API_KEY | Stdio | - | Coval API key for the local stdio transport | | COVAL_API_BASE_URL | No | https://api.coval.dev/v1 | API base URL | | SOFIA_DELEGATION_ORIGIN | No | Derived from COVAL_API_BASE_URL | Overrides the expected Sofia origin used to validate delegation URLs | | LOG_LEVEL | No | info | Logging level | | MCP_ALLOWED_ORIGINS | No | Claude and OpenAI web origins | Comma-separated exact browser origins allowed to call /mcp or /claude/mcp; clients that omit Origin remain supported | | OPENAI_APPS_CHALLENGE | No | - | OpenAI plugin-portal domain verification token served as plain text from /.well-known/openai-apps-challenge | | DD_ENV | No | local | Deployment environment included in structured hosted-request logs | | DD_SERVICE | No | coval-mcp-server | Service name included in structured hosted-request logs | | DD_VERSION | No | COVAL_MCP_SOURCE_SHA or unknown | Immutable release identifier included in structured hosted-request logs |

Documentation

License

MIT

Support