pi-mcp
pi-mcp
Servidor MCP que expone las herramientas del agente de codificación pi:
read, bash, edit, write, grep, find, ls
Construido con Bun y @modelcontextprotocol/server v2. Sirve tanto la era 2026-07-28 (server/discover) como la initialize de 2025.
Requisitos
Bun >= 1.2
rgyfdenPATH(usados porgrep/find; no se descargan)
Instalación
Usa una ruta absoluta. No pases . — el instalador global de Bun puede escribir una
clave pi-mcp duplicada y una entrada vacía "": "." en
~/.bun/install/global/package.json / bun.lock
(oven-sh/bun#19559,
oven-sh/bun#24207).
bun add -g /absolute/path/to/pi-mcp
# same thing from the checkout:
bun add -g "$(pwd)"bun install -g es un alias de bun add -g; la ruta es lo que importa.
El binario se coloca en PATH como pi-mcp (~/.bun/bin).
Para desarrollo local, usa bun link en este directorio.
Uso
pi-mcp # stdio (default)
pi-mcp --http --port 3000 # Streamable HTTP
pi-mcp --cwd /path/to/project
pi-mcp --readonly # read, grep, find, ls
pi-mcp --tools read,grep,ls
pi-mcp --shell /bin/bashBandera | Significado |
| Servir por stdin/stdout (predeterminado) |
| Servir HTTP Streamable |
| Host de enlace HTTP (predeterminado |
| Puerto de enlace HTTP (predeterminado |
| Directorio de trabajo de las herramientas |
| Registrar solo herramientas de solo lectura |
| Subconjunto separado por comas |
| Ejecutable Bash para |
| Nombres |
--stdio no se puede combinar con --http / --host / --port.
Registra en stderr. stdout es el canal del protocolo stdio.
Configuración del host (stdio)
{
"mcpServers": {
"pi": {
"command": "pi-mcp",
"args": ["--cwd", "/path/to/project"]
}
}
}HTTP
pi-mcp --http --host 127.0.0.1 --port 3000Envía JSON-RPC por POST al listener. Los clientes modernos (2026-07-28) usan server/discover más el envoltorio _meta por solicitud y las cabeceras Mcp-Method / MCP-Protocol-Version. Los clientes de 2025 usan initialize.
Herramientas
Herramienta | Rol |
| Leer un archivo de texto o imagen ( |
| Ejecutar un comando de shell en |
| Reemplazo exacto de texto (mismas coerciones que pi: |
| Crear/sobrescribir un archivo, creando directorios padre |
| Buscar contenido de archivos con |
| Buscar archivos con |
| Listar un directorio |
El comportamiento de ejecución se toma de las herramientas del agente de codificación de pi. El renderizado TUI, el redimensionamiento de imágenes con photon y las descargas automáticas de rg/fd no están incluidos.
Desarrollo
bun install
bun src/cli.ts --helpDependencias de ejecución: @modelcontextprotocol/server, zod, diff.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server exposing the Backtest360 engine API as tools for AI agents.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhaob1n/pi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server