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에서 사용, 다운로드되지 않음)
설치
절대 경로를 사용하세요. .을 전달하지 마세요 — 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 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