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.
Create Your Configuration File
After installing Pi MCP Adapter, create a configuration file at~/.pi/agent/mcp.json:
~/.pi/agent/mcp.json
Lazy by default: Servers won’t connect until you actually call one of their tools. The adapter caches tool metadata so search and describe work without live connections.
Discover Available Tools
Now restart Pi and search for available tools:Call Your First Tool
Call the tool using the proxy:Explore the MCP Tool
Themcp tool supports multiple modes:
Status - View all servers
Status - View all servers
List - Show all tools from a server
List - Show all tools from a server
Search - Find tools by keyword
Search - Find tools by keyword
Describe - View tool parameters
Describe - View tool parameters
Call - Execute a tool
Call - Execute a tool
Connect - Force server connection
Connect - Force server connection
- Forcing immediate connection instead of waiting for first tool call
- Refreshing metadata after server updates
- Troubleshooting connection issues
Add More Servers
Expand your configuration to include multiple servers:~/.pi/agent/mcp.json
Environment variable interpolation: Use
${VAR_NAME} syntax to reference environment variables from your shell. Pi MCP Adapter will automatically expand them.Interactive Management Panel
Pi MCP Adapter includes an interactive management panel. Run:- Server connection status
- Available tools per server
- Direct vs. proxy tool configuration
- Quick actions (reconnect, OAuth setup)
Import Existing Configurations
If you already have MCP servers configured in other tools, import them:~/.pi/agent/mcp.json
cursor- Cursor IDEclaude-code- Claude Codeclaude-desktop- Claude Desktop appvscode- Visual Studio Codewindsurf- Windsurfcodex- Codex
mcpServers override imported configurations.
Use Direct Tool Registration
By default, all tools are accessed through themcp proxy. For frequently-used tools, you can register them directly so the LLM sees them alongside Pi’s built-in tools:
~/.pi/agent/mcp.json
search_repositories and get_file_contents appear as first-class tools. The LLM can call them directly without searching.
Project-Specific Configuration
Add a.pi/mcp.json file in any project root for project-specific servers:
project-root/.pi/mcp.json
Understanding Lifecycle Modes
Pi MCP Adapter supports three lifecycle modes:Lazy (default)
- Don’t connect at startup
- Connect on first tool call
- Disconnect after idle timeout
- Cached metadata keeps search working
Eager
- Connect at startup
- Don’t auto-reconnect if dropped
- No idle timeout by default
Keep-Alive
- Connect at startup
- Auto-reconnect via health checks
- No idle timeout
~/.pi/agent/mcp.json
Next Steps
Configuration Guide
Learn about all available configuration options, transport modes, authentication, and advanced settings
Available Commands
Explore all
/mcp commands for managing servers, viewing tools, and handling OAuthLifecycle Management
Deep dive into server lifecycle modes, idle timeouts, and connection management
Troubleshooting
Common issues and solutions for server connections, tool calls, and configuration