Project Explorer
by Willkczy
README.md
# Project Explorer
Project Explorer is a read-only [MCP](https://modelcontextprotocol.io) server that lets an assistant such as ChatGPT, Gemini or Claude read the files you choose from a Git repository on your machine. It reads the working tree as it is now, uncommitted changes included, and the branches and linked worktrees you allow.
It was built for one job: asking a chat assistant to explain what a coding agent is doing in a worktree before that work is committed. It is useful whenever you want an assistant to read a private repository without uploading it and without giving the assistant a shell.
## How it works
```
MCP client ──HTTPS──▶ tunnel ──▶ bridge ──stdio──▶ backend
(ChatGPT, Gemini) (host, loopback) (container, no network)
OAuth, fixed tools policy, read-only mount
```
- The **backend** runs in a container with no network, a read-only root file system and a read-only mount of one repository. It decides what may be read.
- The **bridge** runs on the host and listens on loopback only. It checks the OAuth token and forwards a fixed set of read-only tools to the backend over stdio.
- A **policy** file per project lists the directories, files and extensions that are shared. Everything else stays closed, including directories added later.
## What you get
- Eleven read-only tools: list and search files, read line ranges, Git status and diffs, and the log, diff and files of other branches. See [docs/tools.md](docs/tools.md).
- An allowlist per project, on top of global rules that always hide `.git`, `.env*`, key files and similar names. See [docs/policy.md](docs/policy.md).
- OAuth 2.1 resource-server checks that accept only the user IDs you list.
- Uncommitted work in linked worktrees, and committed work on other branches, when the policy allows it.
- Bounded output: every tool has size and time limits and says when a result was cut short.
It does not write to the repository, run commands, or read outside the repository and its worktrees. Shared file content does leave your machine: it is sent to the assistant you connect. [docs/security.md](docs/security.md) describes what is protected and what is not.
## Requirements
Python 3.11 or later, [uv](https://docs.astral.sh/uv/), Git and [ripgrep](https://github.com/BurntSushi/ripgrep). Serving a real project also needs Docker. Sharing over HTTPS needs a tunnel such as `cloudflared` or `ngrok`.
## Try it
```sh
git clone https://github.com/Willkczy/project-explorer.git
cd project-explorer
uv sync
uv run project-explorer demo check
```
This creates a temporary synthetic repository, calls every working-tree tool through the real MCP protocol and prints one `PASS` line per check. To run the same check in the container:
```sh
uv run project-explorer build
uv run project-explorer demo check --docker
```
## Share a repository
```sh
cp policies/project.example.json policies/my-project.json # edit what to share
uv run project-explorer preview --root /path/to/repo --policy policies/my-project.json
uv run project-explorer prepare --root /path/to/repo --policy policies/my-project.json
uv run project-explorer check --project my-project
```
`preview` lists exactly the files the policy shares and writes nothing. `prepare` records the project, and `check` calls the tools in the container without starting any network service.
Then connect a client:
| Client | Guide |
| --- | --- |
| A program on the same machine, such as Claude Code | [docs/clients/local.md](docs/clients/local.md) |
| ChatGPT on the web | [docs/setup.md](docs/setup.md), then [docs/clients/chatgpt.md](docs/clients/chatgpt.md) |
| Gemini on the web | [docs/setup.md](docs/setup.md), then [docs/clients/gemini.md](docs/clients/gemini.md) |
## Documentation
- [Setup](docs/setup.md): OAuth, the HTTPS URL, serving one or several projects.
- [Policy](docs/policy.md): every policy field and the global rules.
- [Tools](docs/tools.md): parameters, results and limits.
- [Security](docs/security.md): the threat model and its limits.
- [Architecture](docs/architecture.md): how the code is organised and why.
- [Contributing](CONTRIBUTING.md) and the [changelog](CHANGELOG.md).
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues