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

@blackwell-systems/bun-mcp-assert

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackwell-systems/bun-mcp-assert

Bun test integration for mcp-assert: run MCP server assertion YAML files as Bun tests

latest
Source
npmnpm
Version
0.12.3
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

@blackwell-systems/bun-mcp-assert

Bun test integration for mcp-assert. Run MCP server assertion YAML files as Bun tests.

Same YAML files work across Bun, Jest, Vitest, pytest, and the CLI.

Install

bun add -d @blackwell-systems/bun-mcp-assert @blackwell-systems/mcp-assert

Usage

Suite mode (auto-discover YAML files)

// mcp.test.ts
import { describeMcpSuite } from "@blackwell-systems/bun-mcp-assert"

describeMcpSuite("my mcp server", "evals/")

Each YAML file in evals/ becomes a Bun test case. Run with bun test.

Single assertion mode

import { test } from "bun:test"
import { runMcpAssert } from "@blackwell-systems/bun-mcp-assert"

test("echo tool returns message", () => {
  runMcpAssert("evals/echo.yaml")
})

test("greet tool with timeout", () => {
  runMcpAssert("evals/greet.yaml", { timeout: "60s" })
})

Options

runMcpAssert("evals/echo.yaml", {
  timeout: "30s",           // per-assertion timeout
  fixture: "test/fixtures", // {{fixture}} substitution
  server: "bun server.ts",  // server override
  binary: "/path/to/mcp-assert", // explicit binary path
})

How it works

@blackwell-systems/bun-mcp-assert is a thin bridge. It uses Bun.spawnSync to call the mcp-assert Go binary with --json, parses the result, and maps it to Bun test pass/fail outcomes.

Binary resolution (in order):

  • Explicit binary option
  • Bun.which("mcp-assert") (PATH lookup, native)
  • @blackwell-systems/mcp-assert npm package

License

MIT

Keywords

bun

FAQs

Package last updated on 04 Jun 2026

Related posts