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.
Configuration File Location
Pi MCP Adapter looks for server configurations in the following locations:Global configuration - Default location for user-wide MCP server settings
Project configuration - Project-specific servers that override global settings
Project configurations (
.pi/mcp.json) take precedence over global configs and imported servers.Basic Structure
Server Configuration Fields
Stdio Transport
For servers that communicate via standard input/output:The executable command to run the MCP server
Command-line arguments passed to the executable
Environment variables for the server process. Supports
${VAR} interpolation.Working directory for the server process
HTTP Transport
For servers that communicate over HTTP (uses StreamableHTTP with SSE fallback):HTTP endpoint for the MCP server
Custom HTTP headers to include in requests
Authentication method for HTTP servers
"bearer"- Bearer token authentication"oauth"- OAuth authentication
Lifecycle Management
Controls when the server connects and disconnects
"lazy"(default) - Connect on first use, disconnect after idle timeout"eager"- Connect at startup, no auto-reconnect on failure"keep-alive"- Connect at startup, auto-reconnect with health checks
Lazy (Default)
Servers don’t connect at startup. They connect on the first tool call and disconnect after the idle timeout period. Metadata is cached so search/describe work without live connections.Best for: Most servers, especially those you don’t use frequently
Eager
Servers connect at Pi startup but don’t auto-reconnect if the connection drops. No idle timeout by default (set
idleTimeout explicitly to enable).Best for: Servers you want ready immediately but don’t need constant uptimeMinutes of inactivity before disconnecting (overrides global setting). Set to
0 to disable.Resource Handling
Expose MCP resources as callable tools
Direct Tool Registration
Register tools individually instead of through the proxy
true- Register all tools from this server["tool_a", "tool_b"]- Register only specific tools (use original MCP names)false- Use proxy only (default)
Debugging
Show server stderr output for debugging
Complete Examples
Next Steps
Global Settings
Configure toolPrefix, idleTimeout, and directTools defaults
Authentication
Set up OAuth and bearer token authentication
Import Configs
Import existing configs from Cursor, Claude Desktop, and more