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.
Changelog
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.2.1.2 - 2026-02-03
Changed
- Added demo video and
pi.videofield to package.json for pi package browser.
2.1.0 - 2026-02-02
Added
- Direct tool registration - Promote specific MCP tools to first-class Pi tools via
directToolsconfig (per-server or global). Direct tools appear in the agent’s tool list alongside builtins, so the LLM uses them without needing to search through the proxy first. Registers from cached metadata at startup — no server connections needed. /mcpinteractive panel - New TUI overlay replacing the text-based status dump. Shows server connection status, tool lists with direct/proxy toggles, token cost estimates, inline reconnect, and auth notices. Changes written to config on save.- Auto-enriched proxy description - The
mcpproxy tool description now includes server names and tool counts from the metadata cache, so the LLM knows what’s available without a search call (~30 extra tokens). MCP_DIRECT_TOOLSenv var - Subagent processes receive their direct tool configuration via environment variable, keeping subagents lean by default.- First-run bootstrap - Servers with
directToolsconfigured but no cache entry are connected duringsession_startto populate the cache. Direct tools become available after restart. - Config provenance tracking for correct write-back to user/project/import sources
- Builtin name collision guard (skips direct tools that would shadow
read,write, etc.) - Cross-server name deduplication for
prefix: "none"andprefix: "short"modes
2.0.1 - 2026-02-01
Fixed
- Adapt execute signature to pi v0.51.0: add signal, onUpdate, ctx parameters
2.0.0 - 2026-01-29
Changed
- BREAKING: Lazy startup by default - All servers now default to
lifecycle: "lazy"and only connect when a tool call needs them. Previously all servers connected eagerly on session start. Setlifecycle: "keep-alive"orlifecycle: "eager"to restore the old behavior per-server. - Idle timeout - Connected servers are automatically disconnected after 10 minutes of inactivity (configurable via
settings.idleTimeoutor per-serveridleTimeout). Cached metadata keeps search/list working after disconnect. SetidleTimeout: 0to disable. /mcp reconnectaccepts an optional server name to connect or reconnect a single server
Added
- Metadata cache - Tool and resource metadata persisted to
~/.pi/agent/mcp-cache.json. Enables search/list/describe without live connections. Per-server config hashing with 7-day staleness. Multi-session safe via read-merge-write with per-process tmp files. - npx binary resolution - Resolves npx package binaries to direct paths, eliminating the ~143 MB npm parent process per server. Persistent cache at
~/.pi/agent/mcp-npx-cache.jsonwith 24h TTL. mcp({ connect: "server-name" })mode - Explicitly trigger connection and metadata refresh for a named server- Failure backoff - Servers that fail to connect are skipped for 60 seconds to avoid repeated connection storms
- In-flight tracking - Active tool calls prevent idle timeout from shutting down a server mid-request
- Prefix-match fallback - Tool calls with unrecognized names try to match a server prefix and lazy-connect the matching server
- Lifecycle options:
lazy(default),eager(connect at startup, no auto-reconnect),keep-alive(unchanged) - Per-server
idleTimeoutoverride and globalsettings.idleTimeout - First-run bootstrap: connects all servers on first session to populate the cache
Fixed
- Connection close race condition: concurrent close + connect no longer orphans server processes
- Fuzzy tool name matching - Hyphens and underscores are treated as equivalent during tool lookup. MCP tools like
resolve-library-idare now found when called asresolve_library_id, which LLMs naturally guess since the prefix separator is_. - Better “tool not found” errors - When a server is identified (via prefix match or override) but the tool isn’t found, the error now lists that server’s available tools so the LLM can self-correct immediately instead of needing a separate list call
1.6.0 - 2026-01-29
Added
- Unified pi tool search -
mcp({ search: "..." })now searches both MCP tools and Pi tools (from installed extensions) - Pi tools appear first in results with
[pi tool]prefix - Details object includes
server: "pi"for pi tools - Banner image for README
1.5.1 - 2026-01-26
Changed
- Added
pi-packagekeyword for npm discoverability (pi v0.50.0 package system)
1.5.0 - 2026-01-22
Changed
- BREAKING:
argsparameter is now a JSON string - Theargsparameter which previously accepted an object now accepts a JSON string. This change was required for compatibility with Claude’s Vertex AI API (google-antigravityprovider) which rejectspatternPropertiesin JSON schemas (generated byType.Record()).
Added
- Type validation for args - Parsed args are now validated to ensure they’re a JSON object (not null, array, or primitive). Clear error messages for invalid input.
isError: trueon error responses - JSON parse errors and type validation errors now properly setisError: trueto indicate failure to the LLM.
Migration
1.4.1 - 2026-01-19
Changed
- Status bar shows server count instead of tool count (“MCP: 5 servers”)
1.4.0 - 2026-01-19
Changed
- Non-blocking startup - Pi starts immediately, MCP servers connect in background. First MCP call waits only if init isn’t done yet.
Fixed
- Tool metadata now includes
inputSchemaafter/mcp reconnect(was missing, breaking describe and error hints)
1.3.0 - 2026-01-19
Changed
- Parallel server connections - All MCP servers now connect in parallel on startup instead of sequentially, significantly faster with many servers
1.2.2 - 2026-01-19
Fixed
- Installer now downloads from
mainbranch (renamed frommaster)
1.2.1 - 2026-01-19
Added
- npx installer - Run
npx pi-mcp-adapterto install (downloads files, installs deps, configures settings.json)
1.1.0 - 2026-01-19
Changed
- Search includes schemas by default - Search results now include parameter schemas, reducing tool calls needed (search + call instead of search + describe + call)
- Space-separated search terms match as OR -
"navigate screenshot"finds tools matching either word (like most search engines) - Suppress server stderr by default - MCP server logs no longer clutter terminal on startup
- Use
includeSchemas: falsefor compact output without schemas - Use
debug: trueper-server to show stderr when troubleshooting
1.0.0 - 2026-01-19
Added
- Single unified
mcptool with token-efficient architecture (~200 tokens vs ~15,000 for individual tools) - Five operation modes:
mcp({})- Show server statusmcp({ server: "name" })- List tools from a servermcp({ search: "query" })- Search tools by name/descriptionmcp({ describe: "tool_name" })- Show tool details and parameter schemamcp({ tool: "name", args: {...} })- Call a tool
- Stdio transport for local MCP servers (command + args)
- HTTP transport with automatic fallback (StreamableHTTP → SSE)
- Config imports from Cursor, Claude Code, Claude Desktop, VS Code, Windsurf, Codex
- Resource tools - MCP resources exposed as callable tools
- OAuth support - Token file-based authentication
- Bearer token auth - Static or environment variable tokens
- Keep-alive connections with automatic health checks and reconnection
- Schema on-demand - Parameter schemas shown in
describemode and error responses - Commands:
/mcpor/mcp status- Show server status/mcp tools- List all tools/mcp reconnect- Force reconnect all servers/mcp-auth <server>- Show OAuth setup instructions
Architecture
- Tools stored in metadata map, not registered individually with Pi
- MCP server validates arguments (no client-side schema conversion)
- Reconnect callback updates metadata after auto-reconnect
- Human-readable schema formatting for LLM consumption