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

@reaatech/mcp-load-test-analysis

v0.1.0

Published

Breaking point detection and performance grading for MCP load testing

Readme

@reaatech/mcp-load-test-analysis

npm version License: MIT CI

Status: Pre-1.0 — APIs may change in minor versions. Pin to a specific version in production.

Breaking point detection and performance grading for MCP load test reports. Continuously monitors error rates and latency during tests, detects degradation thresholds, tracks recovery time, and assigns letter grades with actionable recommendations.

Installation

npm install @reaatech/mcp-load-test-analysis
# or
pnpm add @reaatech/mcp-load-test-analysis

Feature Overview

  • Breaking point detection — monitors error rate, P99 latency, timeout rate, and connection failures against configurable thresholds
  • Recovery tracking — once broken, watches a 5-second rolling window (minimum 10 samples) to detect when the server recovers
  • Letter grading — A/B/C/D/F grades for latency (with per-tool-category benchmarks), concurrency, and error rate
  • Actionable recommendations — auto-generates remediation advice based on breaking point, slow tools, error rates, and recovery time
  • Configurable thresholds — override any detector threshold per test run

Quick Start

import { BreakingPointDetector, Grader } from "@reaatech/mcp-load-test-analysis";
import type { LoadTestReport } from "@reaatech/mcp-load-test-core";

// Breaking point detection
const detector = new BreakingPointDetector({
  errorRate: 0.05,        // 5% error rate threshold
  latencyP99: 10000,      // 10s P99 threshold
  timeoutRate: 0.10,      // 10% timeout threshold
  connectionFailures: 10, // Absolute count
});

// Check during a test
const broken = detector.check(currentConcurrency, metricsCollector);

// Get results after
const result = detector.getResult();
// { detected: true, concurrencyAtBreak: 47, recoveryTimeMs: 45000 }

API Reference

BreakingPointDetector

class BreakingPointDetector {
  constructor(thresholds?: Partial<BreakingThresholds>);

  check(concurrency: number, metrics: MetricsCollector): boolean;  // Returns true if broken
  getResult(): BreakingPointResult;
  reset(): void;  // Clear state for re-use
}

BreakingThresholds

| Property | Default | Description | |----------|---------|-------------| | errorRate | 0.05 | Overall error rate threshold | | latencyP99 | 10000 | P99 latency threshold in ms | | timeoutRate | 0.10 | Timeout proportion threshold | | connectionFailures | 10 | Absolute connection-failure count |

BreakingPointResult

| Property | Type | Description | |----------|------|-------------| | detected | boolean | Whether the server broke | | concurrencyAtBreak | number \| null | Concurrency when break was first detected | | errorRateAtBreak | number \| null | Error rate at the breaking point | | latencyP99AtBreak | number \| null | P99 latency at the breaking point | | recoveryTimeMs | number \| null | Time until error rate returned below threshold |

Grader

Assigns letter grades and generates human-readable recommendations.

class Grader {
  constructor(options?: GraderOptions);

  grade(report: LoadTestReport, context?: GradeContext): Grade;
  generateRecommendations(report: LoadTestReport): string[];
}

GraderOptions

| Property | Type | Description | |----------|------|-------------| | toolCategoryMap | Record<string, string> | Maps tool names to categories ("compute", "search", "io") for per-category benchmarks |

Grading Functions

Standalone functions usable without the Grader class:

import { gradeLatency, gradeConcurrency, gradeErrorRate, overallGrade } from "@reaatech/mcp-load-test-analysis";

gradeLatency(p99: number, benchmarks?: LatencyBenchmarks): Grade;
gradeConcurrency(maxSustainable: number): Grade;
gradeErrorRate(errorRate: number): Grade;
overallGrade(...scores: Grade[]): Grade;  // Returns the worst grade

Default Benchmarks

| Dimension | A | B | C | D | |-----------|---|---|---|---| | Latency P99 | ≤ 500ms | ≤ 1000ms | ≤ 2000ms | ≤ 5000ms | | Concurrency | ≥ 100 | ≥ 50 | ≥ 25 | ≥ 10 | | Error Rate | 0% | ≤ 1% | ≤ 5% | ≤ 10% |

Per-Tool-Category Latency Overrides

| Category | A | B | C | D | |----------|---|---|---|---| | compute | ≤ 100ms | ≤ 250ms | ≤ 500ms | ≤ 1000ms | | search | ≤ 1000ms | ≤ 2000ms | ≤ 5000ms | ≤ 10000ms | | io | ≤ 250ms | ≤ 500ms | ≤ 1000ms | ≤ 2500ms |

Usage Patterns

Detection with Recovery Tracking

const detector = new BreakingPointDetector({ errorRate: 0.05 });

for (const { concurrency } of profileGenerator) {
  const broken = detector.check(concurrency, metrics);

  if (broken && detector.getResult().recoveryTimeMs === null) {
    // Not yet recovered — still in a broken state
    continue;
  }

  if (broken && detector.getResult().recoveryTimeMs !== null) {
    console.log(`Recovered after ${detector.getResult().recoveryTimeMs}ms`);
    break;
  }
}

Custom Benchmarks per Tool

import { Grader } from "@reaatech/mcp-load-test-analysis";

const grader = new Grader({
  toolCategoryMap: {
    "db-query": "search",
    "math-solver": "compute",
    "file-upload": "io",
  },
});

const grade = grader.grade(report);
const recs = grader.generateRecommendations(report);
// ["Slow tools detected: db-query. Consider optimization or caching."]

Related Packages

License

MIT