OpenLore
Local code graph that gives coding agents task context and checks changes before they land
Maps a codebase's routes, schema, env vars and import graph into compact context for coding assistants
By Kailesk Khumar (individual) TypeScript Local · stdio Developer toolsKnowledge and memory
71 popularity score ★ 1.4k ↓ 3.0k/wk
Opens the app, which asks before it adds the server.
claude mcp add codesight -- npx codesight --mcp{
"mcpServers": {
"codesight": {
"command": "npx",
"args": [
"codesight",
"--mcp"
]
}
}
}{
"mcpServers": {
"codesight": {
"command": "npx",
"args": [
"codesight",
"--mcp"
]
}
}
}{
"servers": {
"codesight": {
"type": "stdio",
"command": "npx",
"args": [
"codesight",
"--mcp"
]
}
}
}[mcp_servers.codesight]
command = "npx"
args = ["codesight", "--mcp"]gemini mcp add --scope user codesight npx -- codesight --mcpcodesight is a command-line tool that scans a project and builds a condensed map of it: HTTP, GraphQL, gRPC and WebSocket routes, database models from ORM definitions, UI components, environment variables, middleware, background jobs and the import graph. Started with `--mcp`, the same scanner runs as a local stdio MCP server, so an assistant can ask for one slice of that map (the routes under a prefix, a single model, the files a change would affect) instead of opening many files to work it out.
The server registers 14 tools in src/mcp-server.ts. The first call scans the directory it is given (the working directory by default) and keeps the result in memory; later calls for the same directory reuse it until `codesight_refresh` is called. Each scan also writes its context files into a `.codesight/` folder inside the scanned project, so even the read-style tools leave files behind. File collection stops at a depth of 10 folders unless `maxDepth` is set in the project's codesight config, and blast-radius lookups follow imports 3 levels deep by default.
The wiki and knowledge tools only read output made earlier by the CLI: `npx codesight --wiki` builds `.codesight/wiki/`, and `npx codesight --mode knowledge` builds a KNOWLEDGE.md map of a folder of Markdown notes such as ADRs or an Obsidian vault. Outside MCP, the CLI can also write CLAUDE.md, .cursorrules, AGENTS.md and similar files, show an HTML report, and regenerate on file changes or git commits.
| Runtime | Node.js 18+ |
|---|
Node.js 18 or later with npx. A project on disk to scan. TypeScript projects get AST parsing using the typescript package already in the project; other languages are read with pattern matching. The wiki and knowledge tools need `npx codesight --wiki` or `npx codesight --mode knowledge` run once in the project first. Codex users should raise `startup_timeout_sec` to 60 or install the package globally, as the first npx download can exceed Codex's 30-second default.
Wiki articles and the knowledge map are not generated over MCP: those tools return a message asking you to run the CLI first. Results are cached per session for one directory, so edits made after the first scan are not seen until `codesight_refresh` runs. Folders deeper than 10 levels are skipped unless `maxDepth` is raised in the config. Full AST precision applies to TypeScript only; other languages rely on regex detection, and the optional AST plugins for more languages are a separate opt-in (`--native-ast`). The server reports itself as version 1.10.0 during the handshake whatever package version is installed (src/mcp-server.ts).
Suits developers using Claude Code, Cursor or Codex on web back ends with routes, ORM models and environment files, who want the assistant to query project structure on demand and are happy for a `.codesight/` folder to appear in the repo. It runs entirely on your machine, needs no account or key, and only reads source apart from writing its own output folder. It adds little for projects without routes or schemas, and anyone who wants the assistant to edit code or run commands needs a different server: this one only describes the code.
codesight_scancodesight_get_summarycodesight_get_routescodesight_get_schemacodesight_get_blast_radiuscodesight_get_envcodesight_get_hot_filescodesight_refreshcodesight_get_wiki_indexcodesight_get_wiki_articlecodesight_lint_wikicodesight_get_eventscodesight_get_coveragecodesight_get_knowledge