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

@pi-harness/plugin-mcp-client

v0.1.34

Published

Connect to direct-argv MCP stdio servers with bounded pagination and protocol validation, tool, resource, and prompt bridging, cancellable queued requests, and lifecycle-owned process cleanup.

Readme

@pi-harness/plugin-mcp-client

MCP Client — Connect to direct-argv MCP stdio servers with bounded pagination and protocol validation, tool, resource, and prompt bridging, cancellable queued requests, and lifecycle-owned process cleanup.

Install

npm install --save-exact @pi-harness/plugin-mcp-client

Enable

Add the entry to the Cordis profile the harness starts from:

- id: mcp-client
  name: "@pi-harness/plugin-mcp-client"
  config: {}

The Pi Harness plugin marketplace installs and enables this package for you; the steps above are the manual equivalent.

A stopped server remains visible as stopping until its process closes. Starting another server with the same ID is rejected during that interval; after closure the ID can be reused. Plugin disposal also owns and reaps servers that are still stopping.

One-shot command calls and explicit-command server starts use the current native session workspace. Profile-configured servers start from the harness launch workspace, including auto-started servers. Persistent servers keep their starting directory and remain available by ID after session changes; switching sessions does not restart them.

Each tool invocation is bound to its original native session before parameter inspection. Session changes clear the last inventory and call receipt, reject old queued requests before sending them, and discard stale results after process cleanup. Already sent MCP requests and their external effects cannot be undone; a running request may finish or reach its timeout before the stale result is discarded.

Model-visible discovery and results

mcp_list_tools includes input schemas and mcp_list_prompts includes argument definitions in model-visible JSON. Both accept optional offset (0–1000) and limit (1–100, default 20). Each model-visible page is limited to 64 KiB of UTF-8 and reports total, shown, nextOffset and truncated. Continue at nextOffset until it is null. Discovery reruns on each call; these pages are observations, not a frozen remote snapshot. The existing full validated inventory remains in details and the panel cache.

A descriptor larger than the page budget is represented by its name, a short description and descriptorOmitted: true, never a silently clipped schema. Supply exact name instead of offset/limit to read one complete descriptor, up to the existing 1 MiB response-size ceiling. Unknown names and invalid pagination fail explicitly. Names remain discoverable even when their definitions require individual retrieval. Remote pagination still has the existing 100-page and 1000-item limits.

mcp_call preserves structuredContent as JSON text for the model, including when a server returns an empty content array. An identical JSON text block is not duplicated. The negotiated 2025-06-18 protocol expects structured content to be an object; malformed values fail explicitly. MCP isError results remain tool errors rather than successful receipts.