# my-pi [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/BoxBoxmari/my-pi  
**GitHub Stars:** 3  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/my-pi

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

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/BoxBoxmari/my-pi), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g @koonwang03/my-pi
```

2. Start the server:

```sh
my-pi-mcp --workspace /path/to/your/project
```

3. Start the server:

```sh
my-pi-mcp --workspace /path/to/your/project --security-profile trusted
```

4. Add to your MCP client:

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

5. Add to your MCP client:

```sh
my-pi-mcp host-config claude-code-local
```

6. Add to your MCP client:

```sh
my-pi-mcp host-config cursor-local
```

## Documentation

## What the my-pi MCP server does

The my-pi MCP server exposes a local coding workspace through the Model Context Protocol. Its public surface contains 13 tools covering file access, repository exploration, structural code search, language-server queries, and Git inspection. The runtime does not choose models, spawn agents, or depend on a secondary paid LLM service.

Workspace access is bounded by an explicitly selected root. Reads are restricted by policy, and sensitive paths such as `.env*`, `.aws/`, `.ssh/`, and `*.key` are denied before their contents enter model context. The default security profile is read-only. File mutation and language-server process startup require explicit trusted elevation.

## How it works

A compatible coding host communicates with the MCP edge over stdio. The runtime applies workspace and security policies before dispatching requests to local filesystem, search, AST, LSP, or Git components. It keeps source code and detailed workspace state on the host.

Writes and patches can use raw SHA-256 content preconditions. A guarded update is rejected when the file no longer matches the expected content, helping prevent stale overwrites. File replacement also preserves relevant encoding, line endings, BOM information, and POSIX executable-mode behavior. Long-running search, Git, and LSP subprocess work supports cancellation and cleanup.

Tree-Sitter structural search supports TypeScript, JavaScript, Python, Rust, and Go. LSP tools provide status, symbols, navigation, diagnostics, definitions, references, and hover information where supported host language servers are available. Git operations provide bounded status and filtered diffs, including secret filtering and large-diff spillover behavior.

## Setup and configuration

The my-pi MCP server requires Node.js 24.0.0 or newer, with Node 24 LTS identified as the normative runtime. Install the published package globally and provide a workspace path:

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

Use `--security-profile trusted` only for a workspace that has been explicitly approved. Starting without `--workspace` or `MY_PI_WORKSPACE_ROOT` fails closed. The `--allow-cwd` option grants the current directory and should be used only when that behavior is intentional.

Host configuration snippets can be generated for Cursor and Claude Code, including local variants, with the `host-config` command. The published npm package is the stable MCP server; the coordination daemon and local UI belong to experimental source-build components.

## Tools and capabilities

The 13-tool surface includes:

- `fs_read`, `fs_write`, `fs_patch`, and `fs_stat` for bounded file operations and metadata
- `search` and `workspace_info` for repository discovery and workspace state
- `ast_search` for structural code queries
- `lsp_status`, `lsp_symbols`, `lsp_navigate`, and `lsp_diagnostics` for language-server intelligence
- `vcs_status` and `vcs_diff` for Git state and bounded diffs

## Limitations and notes

The my-pi MCP server is released as alpha software. Review its security model before enabling the trusted profile. LSP behavior depends on supported language servers installed or available in the host environment. The repository contains additional experimental components, but the stable public claim is limited to the 13-tool MCP surface.

_Full upstream README: https://allmcps.com/mcp/my-pi/readme_

