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

@vinkius-core/mcp-fusion-inspector

v1.0.1

Published

MCP Fusion Inspector — Real-time interactive terminal dashboard for MCP Fusion servers. Shadow Socket out-of-band telemetry with zero stdio interference.

Readme


Zero-overhead observability for MCP Fusion servers. Connects via Shadow Socket (IPC) — no stdio interference, no port conflicts, no agent disruption.

Why Inspector?

MCP servers communicate over stdio, which means traditional debugging tools (console.log, debuggers) are off-limits. The Inspector solves this by opening an out-of-band Shadow Socket (Named Pipe on Windows / Unix Domain Socket on Linux/macOS) that streams real-time telemetry without touching stdio.

┌─────────────────────────────────────────────┐
│  MCP Client (Claude, Cursor, etc.)         │
│         ↕ stdio (MCP protocol)             │
│  MCP Fusion Server                         │
│         ↕ Shadow Socket (IPC)              │
│  Inspector TUI / stderr logger              │
└─────────────────────────────────────────────┘

Quick Start

# Launch interactive TUI (auto-discovers running server)
npx fusion inspect

# Short alias
npx fusion insp

# Built-in simulator (no server needed — great for demos)
npx fusion insp --demo

# Headless stderr output (ECS / K8s / CI)
npx fusion insp --out stderr

# Connect to a specific server PID
npx fusion insp --pid 12345

Dashboard Panels

Topology

Live tool registry showing every registered tool and action with:

| Column | Description | |--------|-------------| | Status | ok, error, pending | | Tool | group.action qualified name | | Type | R/O read-only, W write, 🔒 sandboxed, ◆FSM state-gated | | Latency | Last execution time in ms | | Calls | Total invocation count | | Middleware | Chain length per action |

Tabs: Tools · Prompts · Resources

Traffic Log

Real-time color-coded event stream — every pipeline stage appears as it happens:

19:32:01  ROUTE   billing.createInvoice
19:32:01  ZOD     ✓ 2ms
19:32:01  MW      chain(2)
19:32:01  EXEC    ✓ 45ms
19:32:01  SLICE   4.2KB → 1.1KB (73.8% saved)
19:32:01  DLP     ✖ $.user.email → [REDACTED]

X-Ray Inspector

Select any tool in the list to see deep inspection in the right panel:

  • Error Autopsy — Full exception with pipeline stage (VALIDATE, MIDDLEWARE, EXECUTE), self-healing recovery hints
  • Last Input — Zod-validated arguments (pretty-printed JSON)
  • Select Reflection — Which fields the AI chose via _select (e.g. "3 of 12 fields")
  • Late Guillotine — Token economy: raw DB bytes vs. wire bytes with savings percentage bar
  • Cognitive Guardrails — Array truncation from agentLimit() (e.g. "500 → 50 items")
  • DLP Redactions — Masked PII paths ($.user.email → [REDACTED])
  • Cognitive Rules — System rules injected by the Presenter
  • Call History — Rolling log with latency, status, and summary per call

Header Bar

Server name · PID · Heap usage · Uptime · Requests/second

Telemetry Events

The Inspector processes all events emitted by the MCP Fusion pipeline:

| Event | Source | Description | |-------|--------|-------------| | topology | startServer() | Tool registry snapshot (initial + hot-reload) | | heartbeat | startServer() | PID, heap, uptime (every 5s) | | route | Pipeline | Action routing resolution | | validate | Pipeline | Zod validation result + duration | | middleware | Pipeline | Middleware chain length | | execute | Pipeline | Handler execution result + duration | | error | Pipeline | Exception with recovery hints | | presenter.slice | Presenter | Raw bytes vs. wire bytes (token savings) | | presenter.rules | Presenter | Injected system rules | | dlp.redact | DLP | PII redaction paths | | fsm.transition | FSM Gate | State machine transition (from → to) | | sandbox.exec | Sandbox | Sandboxed execution metrics | | governance | Governance | Policy enforcement events |

Output Modes

Interactive TUI (default)

Full-screen terminal dashboard with keyboard navigation.

fusion inspect
fusion insp --demo

Keyboard shortcuts:

| Key | Action | |-----|--------| | / j k | Navigate tool list | | q / Ctrl+C | Exit |

Headless (stderr)

Structured log output for non-TTY environments. Ideal for containers, CI/CD, and log aggregation.

# Color-coded stderr
fusion insp --out stderr

# NDJSON format (set env var)
FUSION_LOG_FORMAT=json fusion insp --out stderr

# Pipe to file
fusion insp --out stderr | tee telemetry.log

Respects NO_COLOR environment variable.

Programmatic API

import {
    commandTop,
    streamToStderr,
    startSimulator,
} from '@vinkius-core/mcp-fusion-inspector';

// Launch the interactive TUI
await commandTop({ pid: 12345 });

// Launch the headless stderr logger
await streamToStderr({ pid: 12345 });

// Start the built-in simulator (returns a TelemetryBus)
const bus = await startSimulator({ rps: 5 });
// ... use bus.path to connect TUI or logger
await bus.close();

Rendering Utilities

Low-level ANSI primitives exported for custom TUI implementations:

import {
    ansi,
    ScreenManager,
    box,
    hline,
    pad,
    truncate,
    progressBar,
    stringWidth,
    RingBuffer,
} from '@vinkius-core/mcp-fusion-inspector';

Installation

npm install @vinkius-core/mcp-fusion-inspector

Peer Dependency

Requires @vinkius-core/mcp-fusion ≥ 3.0.0 (provides TelemetryEvent types and TelemetryBus).

How It Works

  1. Server sidestartServer({ telemetry: true }) creates a Shadow Socket (Named Pipe / UDS) and streams TelemetryEvent objects as newline-delimited JSON.

  2. Client side — The Inspector connects to the Shadow Socket, parses events, and updates the TUI state at 15 fps (throttled to prevent flicker).

  3. Auto-discovery — When no --pid or --path is specified, the Inspector scans for the well-known IPC path pattern and auto-connects. If no server is found, it polls every 2 seconds. If the connection drops, it auto-reconnects.

Requirements

  • Node.js ≥ 18.0.0
  • Interactive terminal (for TUI mode) — --out stderr for non-TTY environments
  • MCP Fusion ≥ 3.0.0 (peer dependency)

License

Apache-2.0