pi-mcp
pi-mcp
MCP-Server, der die Coding-Agent-Tools von pi bereitstellt:
read, bash, edit, write, grep, find, ls
Erstellt mit Bun und @modelcontextprotocol/server v2. Unterstützt sowohl die Ära 2026-07-28 (server/discover) als auch initialize aus der Ära 2025.
Voraussetzungen
Bun >= 1.2
rgundfdimPATH(verwendet vongrep/find; werden nicht heruntergeladen)
Installation
Verwenden Sie einen absoluten Pfad. Übergeben Sie nicht . – Buns globaler Installer kann einen doppelten pi-mcp-Schlüssel und einen leeren Eintrag "": "." in ~/.bun/install/global/package.json / bun.lock schreiben (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 ist ein Alias für bun add -g; der Pfad ist entscheidend. Die Binärdatei landet als pi-mcp im PATH (~/.bun/bin).
Für die lokale Entwicklung verwenden Sie stattdessen bun link in diesem Verzeichnis.
Verwendung
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/bashFlag | Bedeutung |
| Über stdin/stdout bedienen (Standard) |
| Streamable HTTP bedienen |
| HTTP-Bind-Host (Standard |
| HTTP-Bind-Port (Standard |
| Arbeitsverzeichnis der Tools |
| Nur schreibgeschützte Tools registrieren |
| Kommagetrennte Teilmenge |
| Bash-Programm für |
| Kommagetrennte |
--stdio kann nicht mit --http / --host / --port kombiniert werden.
Loggen Sie nach stderr. stdout ist der stdio-Protokollkanal.
Host-Konfiguration (stdio)
{
"mcpServers": {
"pi": {
"command": "pi-mcp",
"args": ["--cwd", "/path/to/project"]
}
}
}HTTP
pi-mcp --http --host 127.0.0.1 --port 3000POST JSON-RPC an den Listener. Moderne Clients (2026-07-28) verwenden server/discover sowie den _meta-Envelope pro Anfrage und die Header Mcp-Method / MCP-Protocol-Version. Clients von 2025 verwenden initialize.
Tools
Tool | Rolle |
| Liest eine Textdatei oder ein Bild ( |
| Führt einen Shell-Befehl in |
| Exakter Textersatz (gleiche Umwandlungen wie pi: JSON-String |
| Erstellt/überschreibt eine Datei und erstellt übergeordnete Verzeichnisse |
| Durchsucht Dateiinhalte mit |
| Findet Dateien mit |
| Listet ein Verzeichnis auf |
Das Ausführungsverhalten stammt aus den Coding-Agent-Tools von pi. TUI-Rendering, Photon-Bildskalierung und automatische rg/fd-Downloads sind nicht enthalten.
Entwicklung
bun install
bun src/cli.ts --helpLaufzeitabhängigkeiten: @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