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

@assertrx/mcp

v1.2.0

Published

A Model Context Protocol (MCP) server that bridges AssertRx with AI agents like Claude and Cursor

Downloads

313

Readme

AssertRx MCP Server

A Model Context Protocol (MCP) server that connects AssertRx to AI agents like Claude and Cursor. Interact with your test cases and test runs through natural language.


What Can You Do With It?

Once configured, ask your AI agent things like:

  • "What's the latest test result for PROJ-42?"
  • "Record a passing test run for APP-99 — scenario 'User login', executed by CI"
  • "Show me the test case for JIRA-7"
  • "Generate a BDD test case for PROJ-55 and save it to AssertRx"
  • "Analyze the test history for FEAT-10 — is it flaky?"

Available Tools

| Tool | What it does | |------|-------------| | health | Verify your API key and connection | | get_latest_run | Get the most recent test run for a Jira issue | | record_run | Record a new test run result (Pass/Fail/Skip) | | get_test_case | Fetch the stored BDD/checklist test case for an issue | | upsert_test_case | Create or update a test case in AssertRx | | analyze_test_history | Analyze pass/fail patterns and suggest fixes | | generate_test_case | AI-generate a BDD Gherkin test case (optionally save it) |


Quick Start

1. Get Your AssertRx API Key

  1. Log in to AssertRx
  2. Go to Settings → API Keys
  3. Click Generate New Key
  4. Copy the key — it is shown only once

2. Configure Claude Desktop

Open (or create) ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, or %APPDATA%\Claude\claude_desktop_config.json on Windows.

Option A — via npx (recommended, no install needed):

{
  "mcpServers": {
    "AssertRx": {
      "command": "npx",
      "args": ["-y", "assertrx-mcp"],
      "env": {
        "ASSERTRX_API_KEY": "trx_your_api_key_here"
      }
    }
  }
}

Option B — global install:

npm install -g @assertrx/mcp
{
  "mcpServers": {
    "AssertRx": {
      "command": "assertrx-mcp",
      "env": {
        "ASSERTRX_API_KEY": "trx_your_api_key_here"
      }
    }
  }
}

3. Configure Cursor

Edit ~/.cursor/mcp.json (or .cursor/mcp.json in your project root):

{
  "mcpServers": {
    "AssertRx": {
      "command": "npx",
      "args": ["-y", "assertrx-mcp"],
      "env": {
        "ASSERTRX_API_KEY": "trx_your_api_key_here"
      }
    }
  }
}

4. Restart and Verify

Restart your AI client, then ask: "Check AssertRx health". You should see a success message.


Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | ASSERTRX_API_KEY | ✅ Yes | — | Your AssertRx API key | | ASSERTRX_BASE_URL | No | https://api.assertrx.com | Override the API endpoint |


Self-Hosted / Local Development

If running the AssertRx API locally:

{
  "env": {
    "ASSERTRX_API_KEY": "trx_your_key",
    "ASSERTRX_BASE_URL": "http://localhost:3000"
  }
}

Tool Reference

health

Verify your API key is valid and the server is reachable.

"Check if my AssertRx connection is working"

get_latest_run

Get the most recent test result for a Jira issue.

"What's the latest run for PROJ-123?"
"Did APP-42 pass or fail last time?"

Parameters:

  • issueKey (required) — Jira issue key, e.g. "PROJ-123"

record_run

Record a new test execution result.

"Record a failing run for PROJ-123 — scenario 'Checkout flow', run by CI, project MyApp"

Parameters:

  • issueKey (required) — Jira issue key
  • scenario (required) — Test scenario name
  • executedBy (required) — Who/what ran the test (user, CI system, etc.)
  • result (required) — "Pass", "Fail", or "Skip"
  • projectName (required) — Project name in AssertRx
  • steps (optional) — Array of { step, status, notes? }

get_test_case

Fetch the test case text stored in AssertRx for an issue.

"Show me the test case for APP-7"
"What's the BDD scenario for FEAT-99?"

Parameters:

  • issueKey (required) — Jira issue key

upsert_test_case

Create or update a test case in AssertRx.

"Save this BDD scenario to AssertRx for PROJ-5: Feature: Login..."

Parameters:

  • issueKey (required) — Jira issue key
  • testCaseText (required) — Full test case text (BDD or checklist)
  • projectName (optional) — Project name
  • projectKey (optional) — Jira project key (e.g. "PROJ")
  • jiraDescription (optional) — Jira issue description

analyze_test_history

Analyze the test history for an issue and get AI-friendly debugging guidance.

"Analyze PROJ-123 — why is it failing?"
"Is APP-42 flaky? What are the patterns?"

Parameters:

  • issueKey (required) — Jira issue key

generate_test_case

Generate a BDD Gherkin test case for an issue, optionally saving it.

"Generate a test case for PROJ-55"
"Write BDD scenarios for APP-10 and save them to AssertRx"
"Generate tests for FEAT-3, context: users can reset their password via email"

Parameters:

  • issueKey (required) — Jira issue key
  • context (optional) — Additional context (acceptance criteria, user story, etc.)
  • save (optional, default false) — Auto-save the generated case to AssertRx
  • projectName (optional) — Used when saving

Requirements

  • Node.js 18+
  • AssertRx account with API access
  • An MCP-compatible AI client (Claude Desktop, Cursor, etc.)

License

MIT