codelore-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODELORE_REPO_ROOT | Yes | Path to the repository root | |
| CODELORE_VAULT_ROOT | Yes | Path to the vault directory | |
| CODELORE_CHROMA_PATH | Yes | Path to the ChromaDB directory |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_active_scopeA | Report which repo this codelore server is currently scoped to — useful to sanity-check before a multi-step task, or to debug a misconfigured .mcp.json. Not required before calling other tools: they already refuse to resolve to codelore's own source on their own. |
| search_codeA | Search the codebase using semantic similarity. Use this for functional questions: how something works, where a function is defined, what a module does, or any vague/underspecified question about code behaviour. Searches a question-indexed vector database and returns the most relevant code chunks together with their vault summary. Each result is labeled Confidence: high or low based on whether its cosine distance is within max_distance (default 1.35 — tune it lower for stricter matching, higher to allow more speculative results through). FALLBACK — if this tool returns no results or all results are labeled low
confidence, call the Obsidian MCP Once you've located relevant code via a result's After finding results, use the Obsidian MCP GUARDRAIL: Never call the Obsidian MCP vault_root and chroma_path are optional — if omitted, the server uses the CODELORE_VAULT_ROOT and CODELORE_CHROMA_PATH environment variables. Pass them explicitly to query a different repo without reconfiguring the server. Resolves against the configured target repo (see server instructions) — not necessarily the current working directory. |
| explore_repoA | Get a structured overview of the repo by traversing the vault graph. Use this for onboarding questions: 'explain the repo', 'where do I start', 'give me an overview of the codebase', or 'what are the main components'. Starts from the vault INDEX and traverses breadth-first, returning summaries at increasing depth so you can understand the repo from the top down. To drill into a specific node after this overview, use the Obsidian MCP
GUARDRAIL: Never call the Obsidian MCP vault_root is optional — omit to use CODELORE_VAULT_ROOT, or pass it explicitly to explore a different repo's vault without reconfiguring. Resolves against the configured target repo (see server instructions) — not necessarily the current working directory. |
| find_todosA | Find TODO/FIXME comments and recent git activity for relevant files. Use this for project progress or task management questions: 'what's left to do', 'what needs work in the parser', 'what files are incomplete', 'show me open tasks'. Searches for the most relevant files via semantic search, then scans them for TODO/FIXME/HACK comments and shows recent git commits. After identifying open tasks, you may use the Obsidian MCP GUARDRAIL: Never call the Obsidian MCP vault_root, chroma_path, and repo_root are optional — omit to use env vars, or pass them explicitly to query a different repo. Resolves against the configured target repo (see server instructions) — not necessarily the current working directory. |
| read_guidelinesA | Return the project's architectural guidelines and coding conventions. Use this for questions about coding style, architectural patterns, conventions, how to structure new code, or what rules the project follows. GUARDRAIL: Never call the Obsidian MCP guidelines_path is optional — omit to use CODELORE_GUIDELINES_PATH, or pass a path directly to read any guidelines document without reconfiguring. |
| vault_appendA | Find the most relevant vault note for a user's annotation query and return
its path so the Obsidian MCP Use this when the user wants to add notes, progress updates, or observations to a vault file based on what they're currently doing — for example: 'add a note about the parser edge case', 'mark this TODO as resolved', 'append my findings on the auth module'. WORKFLOW:
GUARDRAIL: Use Returns the resolved vault note path (both relative and absolute forms —
try the relative one first, and fall back to the absolute one if the
Obsidian MCP rejects it) so you can craft a contextual append. Use the
Obsidian MCP vault_root and chroma_path are optional — omit to use env vars. |
| estimate_costA | Estimate how many Claude CLI calls ingesting a repo will require. Use this BEFORE running ingest_repo on a large codebase to understand the scope. Reports file counts by language and the total number of 'claude --print' subprocess calls that will be made. Does not call Claude or modify anything — safe to run at any time. |
| ingest_repoA | Ingest a code repository into codelore — generates the vault and search index. Accepts either a local directory path or a GitHub URL (https://github.com/owner/repo). Runs the full pipeline:
extra_frontmatter_json — optional JSON object of extra fields to add to every vault note's frontmatter, e.g. '{"project": "myapp", "status": "draft", "tags": ["backend", "python"]}'. Strings, numbers, booleans, and flat lists are all supported. These fields are merged after the built-in fields. After ingestion, the tool prints the vault and chroma paths. Pass these as vault_root and chroma_path to the query tools, or set them as env vars. WARNING: calls 'claude --print' once per file + directory + chunk. Run estimate_cost first on large repos. |
| rebuild_vaultA | Rebuild the vault and search index from an existing explanations file. Use this to re-run vault generation WITHOUT making any Claude CLI calls for file summaries. Useful when you want to re-index after code changes but already have summaries, or to iterate on vault structure without LLM cost. extra_frontmatter_json — optional JSON object of extra fields to add to every vault note's frontmatter, e.g. '{"project": "myapp", "status": "draft", "tags": ["backend", "python"]}'. Strings, numbers, booleans, and flat lists are all supported. Note: ChromaDB question generation still calls Claude once per chunk — only the file/directory summaries are skipped (they're loaded from JSON). The explanations.json is saved automatically by ingest_repo. |
| sync_vaultA | Detect and apply repo changes since the last ingest. Use this to keep the vault and search index in sync after code changes without re-processing the entire repo. Uses git diff against the commit SHA saved during the last ingest_repo run. dry_run=True (default): reports changed, new, and deleted files — no changes made. dry_run=False: for each modified file, regenerates its summary and asks Claude whether it's a REAL conflict vs. the existing vault note (not just phrasing/ comment/formatting drift). Only real conflicts replace the note and reindex that file's ChromaDB questions — everything else is left as-is. Either way, the vault note gets a Sync Log entry noting the commit that was checked. New files are ingested for the first time; deleted files are removed. Always run with dry_run=True first to review the change set, then call again with dry_run=False to apply. Requires the repo to be a git repository. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ayush-Sadekar/codelore-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server