Skip to main content
Glama

repomcp

ci npm JSR Bun license

Universal repo-to-MCP bridge: introspect a repository, expose guarded MCP tools over stdio, generate multi-harness configs (Pi, OMP, Hermes, cc-switch, Claude Code, Kilo Code, Roo Code, Cursor, Cline, OpenCode), normalize embeddings for code indexers, and adapt tool-calling for Chinese providers and raw local checkpoints.

Install

Bun / npm:

bunx repomcp init --target all
npx repomcp init --target all

# or install in your project / globally
bun add -d repomcp
npm i -D repomcp

JSR:

bunx jsr add @kanchingyg/repomcp
npx jsr add @kanchingyg/repomcp

Related MCP server: AI Knowledge Center MCP

Quick start

bunx repomcp init --target all
npx repomcp --mcp
npx repomcp embed --port 11435

Architecture

+--------+    +-------------+    +------------------+
|  repo  |--->| introspect  |--->| MCP tools (stdio)|
+--------+    +-------------+    +------------------+
     |                |                    |
     v                v                    v
+--------+    +-------------+    +------------------+
| harness|    | dirty-parser|    | embed normalizer |
| configs|    | checkpoints |    | (Kilo/Roo dims)  |
+--------+    +-------------+    +------------------+
     |                |                    |
     v                v                    v
 Pi OMP Hermes   Chinese providers    LanceDB/Qdrant
 Cursor Kilo     raw checkpoint EOS

Flags

Flag

Purpose

--mcp

Run stdio MCP server (stdout JSON-RPC guard enabled)

--allow-write

Enable mutating tools (read-only by default)

--dry-run

Simulate tool calls without side effects

Programmatic API

The package exports the runtime from repomcp, repomcp/bridge, and repomcp/runtime (also available on JSR as @kanchingyg/repomcp): MCP server, harness generators, provider/checkpoint helpers, dirty tool-call parser, and embedding normalizer.

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Exposes Language Server Protocol (LSP) tools such as diagnostics, goto definition, find references, symbols, and rename as a stdio MCP server.
    9
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    A read-only MCP server that lets AI assistants inspect local workspace files, search context, view git diffs, and fetch a fixed GitHub profile, all within a sandboxed stdio transport.
    5
    ISC
  • A
    license
    Not graded
    quality
    A
    maintenance
    Serves a repository's code knowledge graph over stdio (MCP) so coding agents can look up symbols, trace callers and callees, compute blast radius, list file symbols, run hybrid lexical-plus-graph search, and get citation-grounded answers from file:line evidence instead of guessing from text chunks. All tools work offline straight from the graph, with prose synthesis only when an OpenAI-compatible LLM endpoint is configured.
    15
    MIT