New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@blackwell-systems/mcp-assert

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackwell-systems/mcp-assert

Deterministic correctness testing for MCP servers

latest
Source
npmnpm
Version
0.12.3
Version published
Weekly downloads
8
-78.95%
Maintainers
1
Weekly downloads
 
Created
Source

mcp-assert

The testing standard for MCP servers. Lint, test, and fuzz over real stdio/SSE/HTTP transport.

A single Go binary that acts as an MCP client: connects to your server, calls your tools with predefined inputs, and evaluates responses against assertions you define in YAML. Includes 24 static analysis rules with auto-fix.

Install

npx @blackwell-systems/mcp-assert

Or install globally:

npm install -g @blackwell-systems/mcp-assert

Quick Start

# Zero-config audit (finds crashes)
mcp-assert audit --server "npx my-mcp-server"

# Static analysis (finds schema issues)
mcp-assert lint --server "npx my-mcp-server"

# Auto-fix schema issues
mcp-assert lint --server "npx my-mcp-server" --fix

# Adversarial fuzzing (finds edge cases)
mcp-assert fuzz --server "npx my-mcp-server"

# Run YAML assertions
mcp-assert run --suite evals/

# CI with threshold
mcp-assert ci --suite evals/ --threshold 95

Lint (24 Rules)

Static analysis catches issues before runtime:

mcp-assert lint --server "npx my-mcp-server"

  E  E103   create_user    Required parameter "email" has no description
  W  W114   update_user    Input schema is 4 levels deep
  W  W112   (server)       Server exposes 27 tools. LLM accuracy degrades beyond 20

# Auto-generate fixes
mcp-assert lint --server "npx my-mcp-server" --fix

# Strict mode for CI (warnings become errors)
mcp-assert lint --server "npx my-mcp-server" --strict

Vitest Integration

npm install -D @blackwell-systems/vitest-mcp-assert
import { describeMcpSuite } from '@blackwell-systems/vitest-mcp-assert'
describeMcpSuite('mcp server', 'evals/')

GitHub Action

- uses: blackwell-systems/mcp-assert-action@v1
  with:
    suite: evals/
  • Documentation
  • GitHub
  • Error Reference (24 error codes)
  • Scorecard (102 servers scanned, 4,794 issues found)
  • GitHub Action
  • Vitest plugin
  • pytest plugin

License

MIT

Keywords

mcp

FAQs

Package last updated on 04 Jun 2026

Related posts