nicobailon/pi-mcp-adapter
A token-efficient adapter that lets the Pi coding agent discover and use MCP servers on-demand without bloating the context window.

This adapter solves the verbosity problem of MCP tool definitions by providing a lightweight proxy (around 200 tokens) that discovers and invokes MCP servers dynamically when needed. Rather than loading hundreds of verbose tool definitions upfront, the agent only starts servers when it actually uses their tools. It automatically reads standard MCP configuration files and can import configs from other AI coding environments like Cursor or Claude Code.