Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nicobailon/pi-mcp-adapter/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before installing Pi MCP Adapter, ensure you have:- Pi coding agent installed and running
- Node.js 16+ (for npm-based MCP servers)
- Basic familiarity with JSON configuration files
Pi MCP Adapter is a Pi extension and requires Pi to be installed first. Visit the Pi repository for installation instructions.
Install via Pi Package Manager
The easiest way to install Pi MCP Adapter is through Pi’s built-in package manager:- Download the latest version from npm
- Install it to
~/.pi/agent/extensions/pi-mcp-adapter/ - Add the extension to your
~/.pi/agent/settings.json - Install required dependencies
Restart Pi
After installation completes, restart Pi:Manual Installation
If you prefer to install manually or need to install from source:Verify Installation
To verify that Pi MCP Adapter is installed correctly:Check for the mcp tool
After restarting Pi, the If no servers are configured yet, you’ll see:
mcp tool should be available. You can verify by running:No servers configured? That’s expected! Continue to the Quick Start guide to configure your first MCP server.
Package Contents
The Pi MCP Adapter installation includes:| File | Purpose |
|---|---|
index.ts | Main extension entry point |
types.ts | TypeScript type definitions |
config.ts | Configuration loading and parsing |
server-manager.ts | MCP server connection management |
tool-registrar.ts | Tool registration and transformation |
lifecycle.ts | Server lifecycle and idle timeout management |
metadata-cache.ts | Tool metadata caching for offline access |
oauth-handler.ts | OAuth authentication flow |
mcp-panel.ts | Interactive management panel |
Dependencies
Pi MCP Adapter automatically installs these dependencies:@modelcontextprotocol/sdk- Official MCP SDK for client connections@sinclair/typebox- Type validation for tool schemaszod(peer dependency) - Schema validation used by Pi
Troubleshooting
Extension not loading after restart
Extension not loading after restart
- Check that the path in
settings.jsonis correct: - Verify the extension files exist:
- Check for errors in Pi’s startup output
npm install failed during installation
npm install failed during installation
If npm install fails:
- Navigate to the extension directory:
- Manually run npm install:
- Restart Pi
'pi install' command not found
'pi install' command not found
Make sure you have the latest version of Pi that supports the package manager. Update Pi:If
pi install is not available, use the manual installation method instead.Updating
To update Pi MCP Adapter to the latest version:Uninstalling
To remove Pi MCP Adapter:Next Steps
Now that Pi MCP Adapter is installed, continue to the Quick Start guide to:- Configure your first MCP server
- Search and discover available tools
- Make your first tool call through the proxy
- Explore advanced configuration options