@assertrx/mcp
v1.2.0
Published
A Model Context Protocol (MCP) server that bridges AssertRx with AI agents like Claude and Cursor
Downloads
313
Maintainers
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
- Log in to AssertRx
- Go to Settings → API Keys
- Click Generate New Key
- 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 keyscenario(required) — Test scenario nameexecutedBy(required) — Who/what ran the test (user, CI system, etc.)result(required) —"Pass","Fail", or"Skip"projectName(required) — Project name in AssertRxsteps(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 keytestCaseText(required) — Full test case text (BDD or checklist)projectName(optional) — Project nameprojectKey(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 keycontext(optional) — Additional context (acceptance criteria, user story, etc.)save(optional, defaultfalse) — Auto-save the generated case to AssertRxprojectName(optional) — Used when saving
Requirements
- Node.js 18+
- AssertRx account with API access
- An MCP-compatible AI client (Claude Desktop, Cursor, etc.)
License
MIT
