pi-mcp
pi-mcp
pi 코딩 에이전트 도구를 노출하는 MCP 서버:
read, bash, edit, write, grep, find, ls
Bun 및 @modelcontextprotocol/server v2로 구축되었습니다. 2026-07-28 시대(server/discover)와 2025 시대 initialize를 모두 제공합니다.
요구 사항
Bun >= 1.2
PATH에rg및fd(grep/find에서 사용, 다운로드되지 않음)
Related MCP server: emcp
설치
절대 경로를 사용하세요. .을 전달하지 마세요 — Bun의 전역 설치 프로그램이
중복된 pi-mcp 키와 빈 "": "." 항목을
~/.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는 bun add -g의 별칭입니다. 경로가 중요합니다.
바이너리는 pi-mcp(~/.bun/bin)로 PATH에 배치됩니다.
로컬 개발의 경우, 이 디렉터리에서 bun link를 대신 사용하세요.
사용법
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/bash플래그 | 의미 |
| stdin/stdout을 통해 제공 (기본값) |
| Streamable HTTP 제공 |
| HTTP 바인드 호스트 (기본값 |
| HTTP 바인드 포트 (기본값 |
| 도구 작업 디렉터리 |
| 읽기 전용 도구만 등록 |
| 쉼표로 구분된 하위 집합 |
|
|
| HTTP DNS 리바인딩 보호를 위한 쉼표로 구분된 |
--stdio는 --http / --host / --port와 결합할 수 없습니다.
stderr에 로그를 남깁니다. stdout은 stdio 프로토콜 채널입니다.
호스트 구성 (stdio)
{
"mcpServers": {
"pi": {
"command": "pi-mcp",
"args": ["--cwd", "/path/to/project"]
}
}
}HTTP
pi-mcp --http --host 127.0.0.1 --port 3000리스너에 JSON-RPC를 POST하세요. 최신(2026-07-28) 클라이언트는 server/discover와 요청별 _meta 봉투 및 Mcp-Method / MCP-Protocol-Version 헤더를 사용합니다. 2025 클라이언트는 initialize를 사용합니다.
도구
도구 | 역할 |
| 텍스트 파일 또는 이미지 읽기 ( |
|
|
| 정확한 텍스트 교체 (pi와 동일한 강제 변환: JSON 문자열 |
| 파일 생성/덮어쓰기, 상위 디렉터리 생성 |
|
|
|
|
| 디렉터리 나열 |
실행 동작은 pi의 코딩 에이전트 도구에서 가져왔습니다. TUI 렌더링, photon 이미지 크기 조정, 자동 rg/fd 다운로드는 포함되지 않습니다.
개발
bun install
bun src/cli.ts --help런타임 종속성: @modelcontextprotocol/server, zod, diff.
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for agentverse documentation, generated by doc2mcp.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA comprehensive MCP server providing secure tools for filesystem operations, Git management, web search, document conversion, npm/.NET project management, and AI generative capabilities (image/video/audio generation and processing) via PiAPI.ai integration.Apache 2.0
- FlicenseNot gradedqualityDmaintenanceMCP server providing filesystem operations, shell execution, and web search capabilities.-
- FlicenseAqualityDmaintenanceA simple MCP server that exposes a terminal tool, allowing AI agents to execute shell commands.1-
- AlicenseNot gradedqualityCmaintenanceLocal MCP server enabling Codex and ChatGPT to read/write files, execute commands, manage processes, use Git, and inspect images on the user's machine with full privileges.Apache 2.0