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

@mcp-z/cli

v1.3.1

Published

CLI tool for managing MCP server clusters and testing workflows.

Readme

@mcp-z/cli

CLI tool for managing MCP server clusters and testing workflows.

Common uses

  • Spawn servers from .mcp.json
  • Inspect tools, resources, prompts, and health
  • Call tools, prompts, and resources directly
  • Search capabilities across servers
  • Generate or validate server.json

Install

npm install -g @mcp-z/cli

Use mcp-z or its alias z, or run without a global install with npx -y @mcp-z/cli followed by the same arguments.

Use from a coding agent

Reuse a project's .mcp.json from a shell-capable coding agent without writing a client script or configuring that agent's native MCP integration. Start with the server you need:

mcp-z inspect --servers SERVER --tools
mcp-z inspect --servers SERVER --tools --json
mcp-z call-tool SERVER TOOL '{"argument":"value"}' --json

Replace SERVER, TOOL, and the illustrative JSON with your configured server and its discovered schema. The first inspection is a readable overview; request the full JSON schema when composing an unfamiliar call. These examples use POSIX shell quoting. The mcp-z-cli skill covers discovery, output selection, argument handling, provider operations, prompts, and resources through task-specific examples. Install it from Git separately from the npm package:

npx skills add https://github.com/mcp-z/cli.git -s mcp-z-cli

Without --config, lookup starts in the current working directory and uses the nearest .mcp.json, searching upward through the home directory inclusive. Outside the home directory tree, it checks only the current directory. Spawned servers use the config directory as their working directory. For alternate configs, --config .mcp.staging.json searches upward by filename, while --config ./.mcp.staging.json selects that exact path.

Context on demand

Agents can search capability names, inspect the needed schemas, and save large responses for local filtering instead of loading every definition and intermediate result into context. Human-readable output is the default; --json preserves structured output for inspection or processing but is not inherently smaller. This controls model context, not necessarily server startup.

Claude Code also supports deferred tool discovery through MCP Tool Search, configured with ENABLE_TOOL_SEARCH. See its current tool-search documentation for defaults and provider limitations. The CLI provides a shell-based route using the same project configuration pattern, independent of an agent's native tool-search implementation.

Background on these design principles:

Quick start

Stdio servers

{
  "mcpServers": {
    "my-server": {
      "command": "node",
      "args": ["path/to/server.js"]
    }
  }
}
mcp-z up

HTTP servers

{
  "mcpServers": {
    "my-server": {
      "type": "http",
      "url": "http://localhost:3000/mcp"
    }
  }
}
mcp-z up

HTTP + start block (extension)

{
  "mcpServers": {
    "my-server": {
      "type": "http",
      "url": "http://localhost:3000/mcp",
      "start": {
        "command": "node",
        "args": ["path/to/http-server.js"]
      }
    }
  }
}

start is an extension used by npx @mcp-z/cli up to launch HTTP servers for you. The up command uses the configuration lookup described above unless you pass an explicit config path.

Commands

mcp-z up

Start MCP servers from .mcp.json.

Common use cases:

  • Start stdio servers for local development
  • Start HTTP servers with start blocks

mcp-z inspect

Inspect tools, resources, prompts, and health.

Common use cases:

  • See what a server exposes before writing code
  • Debug startup issues

mcp-z call-tool

Call a tool with JSON arguments.

Common use cases:

  • Test a tool without writing code
  • Script quick one-offs

mcp-z get-prompt

Get a prompt with optional JSON arguments.

Common use cases:

  • Preview prompt outputs
  • Validate prompt arguments

mcp-z read-resource

Read a resource by URI.

Common use cases:

  • Fetch file-backed resources
  • Verify resource handlers

mcp-z search

Search tools, prompts, and resources across servers.

Common use cases:

  • Discover capabilities by keyword
  • Find the right tool in multi-server setups

mcp-z manifest

Generate or validate server.json.

Common use cases:

  • Author or validate MCP server manifests

Protocol version (--protocol)

Every command that connects to a server (inspect, call-tool, read-resource, get-prompt, search) accepts:

--protocol <legacy|auto|2026-07-28>
  • legacy (the default when the flag is absent) uses the plain 2025 connect sequence.
  • auto probes the server with a server/discover request first, connects at the newest revision the server offers, and falls back to the 2025 sequence when the server cannot serve the modern era.
  • 2026-07-28 pins that revision. A server that does not offer it fails the connect with a message suggesting --protocol auto, instead of silently downgrading.

With auto on stdio servers, the probe is a regular request. A legacy server that never answers an unknown pre-initialize request costs the full 60-second request timeout before the client falls back to the 2025 sequence. Any response, including a JSON-RPC error, ends the probe, so well-behaved 2025 servers fall back in milliseconds.

Run without a config file

mcp-z call-tool local echo '{"message":"hello"}' \
  --run "npx -y @modelcontextprotocol/server-everything"

The command starts the server, prints the echoed message, and closes the connection.

Configuration

MCP server config supports stdio and HTTP.

Stdio

{
  "command": "node",
  "args": ["server.js"],
  "env": { "LOG_LEVEL": "info" }
}

HTTP

{
  "type": "http",
  "url": "http://localhost:3000/mcp",
  "headers": { "Authorization": "Bearer token" }
}

Requirements

  • Node.js >= 20

Documentation

API Docs