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

@fitchmultz/pi-mcp-adapter

v8.0.70

Published

Token-efficient MCP adapter for the Pi coding agent

Readme

Fitch MCP Adapter

Connect Pi to MCP servers for browsers, databases, and APIs. The adapter loads selected tool schemas when needed to keep large catalogs out of the conversation context.

Pi sends a task to the adapter. The adapter discovers tools, calls local or remote servers, and returns results with files for large text.

Install

Check the Pi and Node.js requirements.

pi install npm:@fitchmultz/pi-mcp-adapter
pi

Restart Pi if it was open during installation. Load only one adapter per Pi host. For legacy adapter state, read the upgrade guide before you restart Pi.

For a Git install, run pi install git:github.com/fitchmultz/pi-mcp-adapter.

First use

Enter /mcp setup to add a server or import configs from other hosts. Preview the changes before you save them. The adapter leaves external host files unchanged.

The adapter reads .mcp.json, project .pi/mcp.json (read-only native Pi format when no other Pi MCP extension is coexisting in the session), and ~/.config/mcp/mcp.json automatically. Pi loads project configs only after project trust. See config paths and precedence.

For Chrome DevTools, create .mcp.json in your project:

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp"]
    }
  }
}

Run /reload after config changes. Ask Pi:

Use Chrome DevTools to take a screenshot of the current page.

By default, servers connect when Pi discovers an uncached catalog or calls a tool. Enabled servers appear in a cache-stable <mcp_servers> prompt section with their description or instructions summary, and cached catalogs register as deferred Pi tools (mcp__<server>__<tool> by default) without a connection: Pi's tool_search loads the ones a task needs, codemode scripts can call them directly, and the mcp gateway discovers servers that have no cached catalog yet.

Controls and settings

| Command | Purpose | | ------------------------- | --------------------------------------------------------------------- | | /mcp | Open the interactive server and pin panel | | /mcp status | Show connection state, blocked/disabled servers, and validation notes | | /mcp tools [server] | List discovered tools and estimated token cost (all or one server) | | /mcp reconnect [server] | Reconnect and refresh the catalog (skips disabled servers) | | /mcp reload | Reload MCP configuration and runtime state | | /mcp doctor [server] | Inspect config sources, validation errors, auth health, and stderr | | /mcp-auth <server> | Start OAuth in an interactive session | | /mcp disable <server> | Disable the server live in-session and in project overrides | | /mcp enable <server> | Enable the server live in-session and connect/register its tools |

Use directTools to pin tools at startup. Other tools stay deferred until tool_search loads them. Like Pi's own MCP extension, the adapter activates a registered tool_search when it registers deferred tools, once per session start or tree navigation; a branch that recorded removing tool_search keeps it off. Gateway search covers known catalogs; mcp({ action: "connect", server }) discovers an unknown catalog.

Use approveTools to require confirmation before sensitive calls. Matching calls fail with isError: true in headless sessions or when denied, and concurrent prompts for the same tool serialize cleanly.

More server features

The adapter supports MCP Skills (verified SEP-2640 skills auto-discovered for trusted projects into Pi's resources_discover, on by default via exposeSkills), resources and URI templates (resources / read-resource), and prompt templates (slash commands under /mcp__<server>__<prompt> with MCP argument completions, plus prompts / get-prompt gateway actions).

MCP Apps open interactive UIs in a browser or through Glimpse on macOS. Apps can send messages to Pi. Try the interactive visualizer.

Use Pi's codemode tool for loops and dependent tool calls. See gateway examples for exact call shapes.

Warnings and platform limits

MCP servers can execute programs or access accounts. Check server commands and account access before you trust a project config.

OAuth requires an available OS credential store. Unlock a Secret Service-compatible keyring on headless Linux. The adapter has no plaintext fallback. See the OAuth guide for remote sign-in.

Android and Termux do not support persistent OAuth by default. Unauthenticated, header-token, and stdio servers work. Git/source builds require an Android-native tsgo compiler. Use the precompiled npm package if you have no compiler. See Android build details.

The adapter saves text above the default 50 KiB or 2,000-line limit to local files. Saved results and App histories can contain sensitive data. Remove files when you no longer need them. See output handling and readback.

If App history cannot be saved, reload or exit discards unsaved messages. Retrieve pending messages before either action. See App history and recovery.

Documentation

License and background

Mitch Fultz maintains Fitch MCP Adapter under the MIT license. Mario Zechner discusses tool schema costs in his article about MCP.

Watch the adapter demo.