RMR
You can perform read-only project and code intelligence over a local Git repository.
Ping the RMR MCP Server to check readiness.
Fetch project overviews, including project lists, file trees, entry docs, ADRs, and working-tree state.
Investigate code with outline, symbol/reference search, grep/regex, AST pattern search, callers, callees, and impact/dependency analysis.
Inspect exact evidence as file line ranges, symbol source, or Git diffs, with SHA-256 hashes and working-tree context.
Provides read-only analysis of a selected Git repository, including file overviews, code search and outlines, symbol and call relationships, source excerpts, Git diffs, and Git tree state.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RMR Give me an overview of this repo and find where authentication is handled."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LiveRepoMCP
Connect your local Git repositories to web-based AI with live code intelligence, structural search, call graphs, Git diffs, and guarded editing.
Web AI clients like Claude, ChatGPT, and Gemini normally only see uploaded snippets or stale GitHub commits—missing your uncommitted edits, active branches, and cross-file dependencies. LiveRepoMCP (live-repo-mcp) links one local Git repository on your machine over a secure OAuth 2.1 HTTPS tunnel—read-only by default, with optional guarded writes you can switch on or off live:
Live working-tree visibility: Browse repository files, uncommitted changes, and Git diffs without manual copy-pasting.
Smart code search: Search text, code structure, symbol definitions, and references across your local codebase.
Call graphs & change impact: Trace callers, callees, and downstream dependencies before making edits.
Read-only by default, guarded writes when enabled: Unlock multi-file edits live from your terminal or desktop window behind path and syntax guardrails.
Updates
Highlights in v2.2.0:
PyPI package (
live-repo-mcp) &live-repo doctor: Install globally withuv tool install live-repo-mcp(or run a one-shot check withuvx live-repo-mcp doctor) and uselive-repo,live-repo-web,live-repo-desktop, andlive-repo-serverfrom any Git repository.Zero-flag interactive
live-repo-web& live Hot Toggle:live-repo-webautomatically resolves--repo(current Git root or last saved repo) and saved--domain, supports live write toggling without restarting, and adds interactive TTY slash commands (/write,/status,/copy,/rotate,/repo,/stop) while preserving non-TTY pipe mode.Cross-platform Desktop launchers: Native desktop launchers live in
launchers/with consistent UX across Windows (start_live_repo.vbs), macOS (start_live_repo.command), and Linux (start_live_repo.sh).OAuth 2.1 authentication & clean
/mcpendpoint: Protected/mcpwith PKCES256+ Bearer tokens, interactive/oauth/consentapproval via a local Owner Passcode, Dynamic Client Registration (/register), strictredirect_uriallowlisting, and ngrok Traffic Policy route filtering.Opt-in guarded atomic writes (
apply_edits): Supports up to 15replace(unique exact-matchold_text) orcreateedits per batch with.py/.jsonsyntax checking, path/secret protection, optional worktree conflict checks, and compact unified diffs.
Related MCP server: research-bridge
Quickstart
1. Install LiveRepoMCP
Option 1 — One-command install (recommended):
uv tool install live-repo-mcpUpdate later with uv tool upgrade live-repo-mcp, or run a one-shot environment check without installing via uvx live-repo-mcp doctor.
Note: Before the PyPI release—or to install the latest
mainbranch directly from GitHub—install with:uv tool install git+https://github.com/umsuitdoy/live-repo-mcp
Once installed, these global commands work from any Git repository directory:
live-repo(short alias forlive-repo-mcp) — Unified CLI (live-repo doctor,live-repo web,live-repo desktop,live-repo server)live-repo-web— Terminal OAuth 2.1 + ngrok session runnerlive-repo-desktop— Cross-platform Desktop GUI (Tkinter)live-repo-server— Direct FastMCP server entrypoint
Option 2 — Run from source (git clone + launchers/):
git clone https://github.com/umsuitdoy/live-repo-mcp.git
cd live-repo-mcpRun one of the native desktop launchers in launchers/—launchers/start_live_repo.vbs (Windows), launchers/start_live_repo.command (macOS), or launchers/start_live_repo.sh (Linux)—or run uv run live-repo-web directly from the repository.
2. Verify environment (live-repo doctor)
live-repo doctor(Or uv run live-repo doctor when running from source.) Checks required tools (git, ngrok) and optional integrations (rg, sg, codegraph, tkinter) so you can spot missing dependencies before starting a session.
3. Start & connect
Start a session using Terminal (
live-repo-web) or LiveRepoMCP Desktop (live-repo-desktop) (expand the setup sections below).In Gemini on the web (or another MCP-compatible web client), open Settings → Connected Apps → Custom apps → Add MCP server and enter
https://<your-domain>/mcp.Complete OAuth 2.1 authorization (via Dynamic Client Registration or your pre-registered OAuth Client ID and OAuth Client Secret), then enter your local Owner Passcode at
/oauth/consentto approve access.
NOTICE: Tool results reach your web AI client through ngrok. Choose only repositories you have permission to share through those services.
Core: Python 3.11+, Git, and uv.
Tunnel: Install the ngrok CLI on
PATH, configure your authtoken, and assign a static domain to your ngrok account. See ngrok agent setup.LiveRepoMCP Desktop GUI (optional): Python with Tkinter (
tkinter). Included in standard Windows/macOS Python installers; on Linux install your distribution package (e.g.,python3-tkon Debian/Ubuntu).Optional search tools:
ripgrep(rg) accelerates text search (LiveRepoMCP falls back to Python when unavailable).ast-grep(sg) is required for structural AST pattern search.Optional CodeGraph integration: CodeGraph 1.6.2 is required for call tracing (
callers,callees) andimpactanalysis. See CodeGraph 1.6.2 release.
Run live-repo doctor at any time to inspect the status of all required and optional dependencies.
From any Git repository directory, start a session with smart defaults (or pass explicit flags):
live-repo-web(From a source checkout without
uv tool install, useuv run live-repo-web.)--repodefaults to the current Git repository root (or your last used repo if run outside a repo).--domaindefaults to your saved ngrok domain, or prompts interactively on first run in a terminal.To specify options explicitly:
live-repo-web --repo "/path/to/your/repo" --domain your-domain.ngrok-free.app --port 8000
Interactive mode (TTY): When running in an interactive terminal,
live-repo-webenables liveWriteGateHot Toggle (hot_toggle=True, OFF by default) and provides slash commands without restarting the tunnel:/help— Show available slash commands and aliases/status— Show repository, MCP URL, server/tunnel state, write mode, and OAuth info/write [on|off]— Hot-toggleapply_editslive (OFF by default; persisted once turned ON)/show— Toggle showing/hiding OAuth credentials (Client ID,Client Secret,Owner Passcode)/copy <url|id|secret|pass>(aliases/curl,/cid,/csec,/cpass) — Copy a value to the system clipboard/pass [value]— Set or regenerate the Owner Passcode (restarts session)/rotate— Rotate OAuth credentials, revoke existing tokens, and restart session/repo <path>— Switch the active Git repository and restart session/stop(or/quit) — Stop the tunnel and server cleanly
Non-TTY / pipe mode: When stdin/stdout is redirected (scripts or automation),
live-repo-webprints the clean HTTPS MCP URL (https://<your-domain>/mcp) to stdout, prints OAuth credentials and write mode to stderr, and waits forCtrl+C/SIGTERM.CLI flags:
--repo <path>— Root of a Git worktree (defaults to current Git repo or last saved repo)--domain <host>— Your assigned ngrok domain (defaults to saved domain or prompts interactively)--port <port>— Local loopback port (default:8000)--allow-write— Enable guardedapply_editson startup and remember ON for future runs--read-only— Force read-only mode (OFF) and remember for future runs--rotate-auth— Rotate OAuth client secret and owner passcode and revoke previously issued tokens--redirect-uri <pattern>(repeatable) — Allow additional OAuth callback URIs beyond the built-in Google whitelist (https://vertexaisearch.cloud.google.com/oauth-redirect,https://oauth-redirect.googleusercontent.com/r/*,https://*.googleusercontent.com/*)
Launch LiveRepoMCP Desktop:
Installed globally (
uv tool install): Runlive-repo-desktop(orlive-repo desktop) from any terminal.Running from a cloned repo: Use the native launcher for your OS in
launchers/:Windows: Double-click
launchers/start_live_repo.vbsmacOS: Double-click
launchers/start_live_repo.command(if Gatekeeper warns on first open, right-click → Open)Linux: Run
launchers/start_live_repo.sh
Each launcher verifies
uvis installed, runsuv syncautomatically when.venvor lockfiles change (via.venv/.live-repo-ready), and startsuv run --no-sync live-repo-desktop.Select your repository, enter your ngrok domain, and click Start.
Use Copy URL next to
MCP URL(https://<domain>/mcp) and the Copy buttons next toOAuth Client ID,OAuth Client Secret, andOwner Passcode—all copy buttons stay enabled while the server is Online (even when secrets are masked).Toggle Show OAuth secrets to inspect values, or click Rotate OAuth to generate new credentials and revoke existing tokens on the next Start.
Use the Allow Write (
apply_edits) Hot Toggle (OFF by default; remembered once turned ON) to lock or unlock writes live without restarting the tunnel or reconnecting your web client.Sanitized OAuth diagnostics (without secrets, tokens, or codes) are written to
%LOCALAPPDATA%\LiveRepoMCP\oauth.logon Windows and~/.local/share/LiveRepoMCP/oauth.logon macOS/Linux so you can inspect the exactredirect_uriused by your client and tightenallowed_redirect_urisin settings if desired.
Web MCP client (e.g. Gemini)
│ OAuth 2.1 (PKCE S256 + Bearer)
▼
ngrok (Traffic Policy route allowlist)
│ Streamable HTTP on loopback (/mcp + OAuth routes)
▼
FastMCP + LiveRepoOAuthProvider
├── Read tools: get_project_overview, investigate_codebase, inspect_evidence
└── Write tool (opt-in): apply_edits ── WriteGate + write_guard + atomic patch engine
│
selected repository
├── source files and Git
└── CodeGraph indexEach session creates an isolated one-repo registry (project ID project). All paths are validated against the selected repository root:
Terminal (
live-repo-web): Registersapply_editsbehindWriteGate(hot_toggle=True, OFF by default; persisted once enabled) so you can toggle write permission live with/write onor/write offwithout restarting (or pass--allow-write/--read-only).Desktop (
live-repo-desktop): Registersapply_editsbehindWriteGate(OFF by default) so you can toggle write permission live via Allow Write (apply_edits) without reconnecting.
Tools
get_project_overview— Lists the active repository when called withoutproject_id. For a specific project, returns the file listing, previews of entry documents (README.md,AGENTS.md,docs/architecture.mdif present), architecture decision records (.live-repo-mcp/adr/*.md), and Gittree_state.investigate_codebase— Locates code and relationships bymode:outline— Lists Python classes and functions using Python's AST.symbol— Finds Python definitions and references with Jedi.grep— Searches text or regular expressions with ripgrep (or Python fallback).ast— Searches structural syntax patterns with ast-grep.callers/callees— Finds direct incoming or outgoing calls via CodeGraph.impact— Follows affected dependents across multiple steps via CodeGraph.
inspect_evidence— Returns a line range (file_lines), a symbol's source (symbol), or a Git diff (git_diff). File excerpts include a SHA-256 content hash.apply_edits(opt-in via/write on,--allow-write, or Desktop Hot Toggle) — Atomically applies up to 15 edits (replacewith unique exact-matchold_text, orcreatefor new files) in a single all-or-nothing batch. Validates every edit in memory first (including.pyAST and.jsonsyntax checks), writes via temporary file +fsync+ atomic replace, supports optionalexpected_worktree_fingerprintconflict checks, and returns the updatedtree_stateplus a compact unified diff.
OAuth 2.1 authentication: Clean
/mcpendpoint protected by Bearer tokens (no secret in URLs), PKCE (S256), interactive/oauth/consentOwner Passcode approval, strictredirect_uriallowlist, and SHA-256 hashed persisted token state (oauth-state.json).Route allowlist: Both ngrok Traffic Policy (
req.url.raw_path) and the ASGI app reject any path outside/mcpand the canonical OAuth/discovery routes (/.well-known/oauth-*,/.well-known/openid-configuration,/authorize,/token,/register,/revoke,/oauth/consent).Write guard (
write_guard): Blocks path traversal (..), absolute/drive paths, symlinks and Windows junctions on targets or parent directories,.git/,.env*(except.env.exampleand.env.sample), and private key/certificate files (*.pem,*.key,*.p12,*.pfx,id_rsa*,id_ed25519*).Batch & size caps: Enforces a maximum of 256 KB per file, 1 MB total per batch, and 15 edits per batch.
Install CodeGraph 1.6.2 and run codegraph init from the root of the repository you want to analyze. LiveRepoMCP opens that repo's .codegraph/codegraph.db in read-only mode. Run codegraph sync in the same repo to refresh the index after code changes.
For callers, callees, and impact, pass the symbol name in query. Use subpath to select the exact definition file when names overlap. If that file has no matching definition, the result is empty. For calls, line identifies the definition and call_line identifies the call site in the caller's file when the index has it.
For example, after indexing this repository and sharing it in a session, call investigate_codebase with these arguments to see which symbols depend on get_project:
{
"project_id": "project",
"mode": "impact",
"query": "get_project",
"subpath": "src/live_repo_mcp/core/registry.py",
"depth": 2,
"max_results": 10
}Impact results group affected symbols by definition and show the shortest dependency path to each. If a group contains overloads, its definition is representative and each path starts at the overload it follows. depth controls the number of dependency steps (1–5, default 2). max_results caps the number of groups and the total number of affected symbols (default 30, maximum 50). ambiguous signals multiple matching definition groups, and truncated signals that a limit omitted results.
Run the automated test suite:
uv run --extra dev pytest -qTo manually verify a web session with a sample repository:
Run
live-repo doctor(oruv run live-repo doctor) and verifygitandngrokchecks pass.Confirm unauthenticated
POST /mcpreturns401and unknown paths return404.Complete the OAuth 2.1 flow through
/oauth/consentusing the local Owner Passcode.Call
get_project_overview,investigate_codebase, andinspect_evidencein order and confirm all results stay within the selected repository.Confirm
apply_editsis blocked while write mode is OFF, then enable writes live via/write on(inlive-repo-web) or Allow Write (in LiveRepoMCP Desktop) and verify acreate/replaceedit succeeds atomically.Stop the session (
/stop,Ctrl+C, or Stop) and confirm the URL stops serving requests.Rotate credentials (
/rotate,--rotate-auth, or Rotate OAuth), restart, and confirm previously issued tokens are rejected until re-authorized.
License
LiveRepoMCP is released under the MIT License. Third-party tools (ngrok, ripgrep, ast-grep, and CodeGraph) are not bundled with LiveRepoMCP; they are installed separately by the user and governed by their own licenses.
Available Tools
4 toolsget_project_overviewGet Project OverviewARead-onlyIdempotent
Lấy thông tin tổng quan Tier 1: danh sách dự án (khi không truyền project_id) hoặc cây file, tài liệu cơ sở (entry_docs), ADRs và trạng thái working tree (tree_state).
Inputs: subpath, project_id. Returns: object
inspect_evidenceInspect EvidenceARead-onlyIdempotent
Trích xuất bằng chứng kỹ thuật chính xác (Tier 3) kèm mã băm SHA-256 và trạng thái Working Tree: đọc dòng code ('file_lines'), đọc symbol ('symbol'), hoặc lấy git diff ('git_diff').
Inputs: targets (required), project_id (required). Returns: object
investigate_codebaseInvestigate CodebaseARead-onlyIdempotent
Điều tra kho mã nguồn Tier 2: 'outline' (chữ ký class/hàm/docstring), 'symbol' (định nghĩa và references bằng Jedi), 'grep' (văn bản/regex), 'ast' (mẫu cú pháp), 'callers' (ai gọi symbol), 'callees' (symbol gọi ai), 'impact' (phụ thuộc bị ảnh hưởng). Với callers/callees/impact, truyền tên symbol vào query và dùng subpath để chọn file định nghĩa khi tên bị trùng. Impact dùng depth 1–5 (mặc định 2). Các chế độ này yêu cầu index CodeGraph cục bộ.
Inputs: mode (required), project_id (required), depth, query, +2 more. Returns: object
pingPingARead-onlyIdempotent
Kiểm tra trạng thái sẵn sàng của RMR MCP Server.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The four tools map cleanly to a tiered model (health check, Tier 1 overview, Tier 2 investigation, Tier 3 evidence), so the primary boundaries are clear. However, there is real overlap at the edges: 'symbol' appears both in investigate_codebase (definition + references) and inspect_evidence (read symbol with SHA-256 hash), and file listing in get_project_overview vs. file reading in inspect_evidence can be confused.
Three tools follow a verb-first snake_case pattern (get_project_overview, investigate_codebase, inspect_evidence), giving a predictable read/query convention. 'ping' is a bare verb and breaks the noun-phrase pattern, but as a single conventional health-check name it is a minor deviation.
Four tools is thin on the surface, and the real complexity is hidden inside investigate_codebase, which multiplexes seven modes (outline, symbol, grep, ast, callers, callees, impact) behind one name. This is efficient but pushes mode selection into parameters, making the effective toolset larger than four and harder to discover.
The read/investigation lifecycle is covered end to end, but the descriptions state that callers/callees/impact require a local CodeGraph index and no tool exists to build, refresh, or inspect that index — a dead end for an agent on a cold workspace. All tools are read-only, with no way to record findings, ADRs, or state.
Maintenance
Related MCP Connectors
Repository knowledge graph MCP server for codebase understanding and debugging.
Read-only MCP server for repository context: context packs, graph impact analysis, and validation.
MCP server for the GitCore API, enabling AI agents to interact with GitCore repositories, issues, pull requests, and more.
Permission-aware onboarding MCP server: answers about a codebase, filtered by the caller's role.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for git archaeology — churn hotspots, blame summaries, bus factor, commit forensics and file history over any local repository.113MIT
- AlicenseBqualityCmaintenanceEnables MCP clients to drive local Codex on a target Git repository: inspect repo state, start and follow up on tasks, review events and diffs, and record audit evidence for research governance.272MIT
- AlicenseBqualityCmaintenanceEnables users to explore a local repository’s commit history through read-only MCP tools, including branch lanes, merge edges, branch selection, search highlighting, commit metadata, file statistics, and bounded patches.2MIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients to quickly extract information from GitHub repositories, including repository summaries, project directory structures, and file contents. It integrates with gitingest to provide these capabilities.-