my-pi

io.github.BoxBoxmari由 GitHub 账号 BoxBoxmari 发布v0.1.0-alpha.2更新于 Oct 24, 2026

Local-first MCP runtime for coding agents with safe workspace access, AST/LSP navigation, and Git.

概览

AI 生成的概览

一个本地 MCP 运行时,让编码助手以受限方式访问代码库的文件系统、AST/LSP 导航和 Git。

可以做什么
my-pi 作为本地 stdio MCP 服务器运行,提供四组共 13 个工具:文件系统操作(fs_read、fs_write、fs_patch、fs_stat)、搜索与工作区信息(search、workspace_info)、AST 与语言服务器导航(ast_search、lsp_status、lsp_symbols、lsp_navigate、lsp_diagnostics)以及 Git 上下文(vcs_status、vcs_diff)。写入可用内容指纹校验保护,而不是盲目覆盖。AST 搜索支持 TypeScript、JavaScript、Python、Rust 和 Go;当主机上安装了兼容的语言服务器时,LSP 功能支持 TypeScript、Python、Rust 和 Go。
适用场景
当编码助手需要以受控方式访问真实的本地代码库、而不是获得不受限制的 shell 时使用,例如读取和修补文件、导航符号与定义,或查看 Git 状态与差异。适合支持 MCP 的本地开发环境,如 Claude Code、Cursor 或 OpenCode。
运行要求
需要 Node.js 24.0.0 或更高版本;可通过 npm 全局安装或用 npx 运行。必须通过 --workspace 或环境变量 MY_PI_WORKSPACE_ROOT 指定工作区,否则启动会失败关闭。仅限桌面端;未声明身份验证。语言服务器功能需要主机上存在兼容的语言服务器可执行文件。
安装前请注意
服务器以只读模式启动;启用写入和语言服务器进程需要显式使用 trusted 安全配置,且只应用于可信工作区。写入和补丁会修改工作区中的文件,--allow-cwd 会选定当前目录。该版本为 alpha,适合评估和受控的本地开发。

安装

在 SourceWeft 中

  1. 打开 控制台中的 my-pi,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

my-pi

[npm version] [npm downloads] [Listed on mcpservers.org] [my-pi MCP server – quality and maintenance score on Glama] [CI status] [License]

my-pi is a local-first Model Context Protocol (MCP) runtime for coding agents that need controlled access to a real codebase without handing the agent an unrestricted shell.

It combines bounded filesystem operations, content-preconditioned writes, structural AST search, language-server navigation, Git status/diff tooling, and an explicit read-only-by-default security model behind one stdio MCP server.

Why my-pi

  • Local-first: source code and detailed workspace state stay on the host.
  • Read-only by default: mutation and language-server process startup require explicit elevation.
  • Safer writes: updates can be guarded by content fingerprints instead of blind overwrites.
  • Code-aware navigation: Tree-Sitter AST search plus LSP symbols, definitions, references, hover, and diagnostics.
  • Git-aware context: bounded status and diff capabilities without exposing an unrestricted command runner.
  • Host-neutral: designed for MCP-capable coding environments including Claude Code, Cursor, and OpenCode.

Install and run

Requires Node.js >=24.0.0.

bash
npm install -g @koonwang03/my-pimy-pi-mcp --workspace /path/to/project

Or inspect a generated host configuration without a global install:

bash
npx --yes --package @koonwang03/my-pi my-pi-mcp host-config cursor-local

The server starts in the read-only security profile. Enable writes and language-server processes only for a trusted workspace:

bash
my-pi-mcp --workspace /path/to/project --security-profile trusted

Starting without --workspace or MY_PI_WORKSPACE_ROOT fails closed. Use --allow-cwd only as an intentional opt-in to the current directory.

Core MCP capabilities

The stable alpha surface exposes 13 tools across four groups:

  • Filesystem: fs_read, fs_write, fs_patch, fs_stat
  • Search/workspace: search, workspace_info
  • AST/LSP: ast_search, lsp_status, lsp_symbols, lsp_navigate, lsp_diagnostics
  • Git: vcs_status, vcs_diff

Structural AST search supports TypeScript, JavaScript, Python, Rust, and Go. LSP integrations support TypeScript, Python, Rust, and Go when compatible language-server executables are available on the host.

Generate host configuration

bash
my-pi-mcp host-config claude-code-localmy-pi-mcp host-config cursor-localmy-pi-mcp host-config opencode-current-local

Security model

my-pi uses explicit workspace authority and pre-read sensitive-path policy. The default profile is intentionally restrictive; trusted mode is an explicit opt-in for mutation and language-server processes.

Review the full security model before enabling trusted mode:

https://github.com/BoxBoxmari/my-pi/blob/main/docs/SECURITY_MODEL.md

Project status

Current release channel: alpha. The package is intended for evaluation and controlled local development while coordination/evaluation features under the repository's "Production Next" work remain experimental.

Repository, architecture, benchmarks, release evidence, and contribution details:

https://github.com/BoxBoxmari/my-pi

The primary executable is my-pi-mcp; ccr-mcp is retained as a compatibility alias.

来源:apps/my-pi-mcp/README.md,提交 59f3291

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0-alpha.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分