VectorMCP
Click on "Install 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., "@VectorMCPwhich repos own the payment flow, then show the charge code?"
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.
VectorMCP — central cross-repo code index over MCP
Gives Claude Code one central, always-warm index over every Ikshana repo. State a task, get back the repos responsible for it, then search and read their code without cloning anything.
The constraint this is built around
Claude Code clones a fresh copy of a repo for each task and throws it away. So
index identity is git object identity, never filesystem location: a chunk's
Qdrant point id is uuid5(NS, "{repo_id}:{blob_sha}:{chunk_idx}"). Blob shas are
identical in every clone, forever, which means:
a fresh clone at any commit needs zero re-indexing;
indexing runs server-side against bare mirrors, never in the agent's checkout;
the agent only ever contributes deltas for its uncommitted edits, into a disposable
scope=session:<id>overlay.
Measured on this codebase: a single commit changes 0.5–0.8% of indexable files, so an incremental pass re-embeds one or two files rather than 927.
Related MCP server: PAMPA
Layout
path | what |
| what not to index — the highest-leverage file here |
| git access; works on bare mirrors or existing checkouts |
| commit → manifest, plus the reviewable report |
| Postgres: manifests, embedding cache, ACL |
| Qdrant collections, point ids, visibility filters |
| embeddings, rerank, summarisation ("online mode") |
| syntax-aware chunking; copes with a 593 KB single-class module |
| code-aware sparse/BM25 tokens (snake_case, camelCase, dotted paths) |
| blob → chunks → summaries → vectors → Qdrant, batched repo-wide |
| hybrid fusion, cross-encoder rerank, clone-free file reads |
| per-repo routing cards, used as a routing prior |
| task → responsible repos, evidence, sparse-checkout plan |
| overlays for the agent's uncommitted edits |
| tree-sitter extraction: symbols, imports, routes, env keys, calls, tasks |
| cross-repo coupling edges and context expansion |
| the MCP tools |
| local inspection UI backend (Starlette, no new deps) |
| the UI itself; re-read per request, so edits are live |
|
|
| manifests, graph slice, sessions |
Running it
cp .env.example .env # then set OPENROUTER_API_KEY
docker compose up -d qdrant postgres
docker compose build indexerPorts are deliberately non-default — 6335/6336 for Qdrant and 5433 for
Postgres — because the Qdrant on 6333 holds live person_reid and face
collections and this is a tool whose own collections get dropped and rebuilt.
The vector dimension is fixed at collection creation and OpenRouter does not document it per model, so it is measured:
python3 scripts/probe_embedding.py --rerank # prints EMBED_DIM -> put it in .env
docker compose run --rm indexer python -m codeindex.cli setupBootstrap from the checkouts already on this machine (no Bitbucket credentials
needed — LOCAL_REPO_ROOT is bind-mounted read-only at /repos):
docker compose run --rm indexer python -m codeindex.cli add-repo /repos/BACKEND
docker compose run --rm indexer python -m codeindex.cli sync-manifestsCheck the ignore policy against real repos before spending anything on embeddings — this needs no Docker, no Postgres and no API key:
python3 scripts/scan_report.py ~/Documents/Ikshana-V2/*/Using it from Claude Code
claude mcp add --transport http codeindex http://localhost:8080/mcpTools, in the order an agent should reach for them:
tool | what it answers |
| which repos own this task, with evidence and a sparse-checkout plan |
| which chunks are relevant, across every repo at once |
| the contents of any file at any commit, without cloning |
| what else a symbol touches — callers in other services, routes, config |
| make your own uncommitted edits searchable |
| inspect and discard an overlay |
| what is indexed |
The UI
http://localhost:8090 — three views over the same data the MCP tools return, so what you see is what the agent sees.
view | what it shows |
Index | per-repo files / indexed / chunks / points, summary coverage, commit. Click a repo for its routing card, language mix and skip reasons |
Search | the full hybrid + rerank pipeline, with each hit's summary and code |
Route | ranked repos with the score broken into peak / depth / spread / prior / substance, the evidence, and the checkout plan |
The Index tab also shows the structural graph — extraction totals and the
cross-repo coupling table. Open session overlays appear below it, and entering a session id on
the Search tab includes that session's uncommitted edits — flagged
uncommitted in the results. Repo point counts are scoped to main, so an
overlay never inflates a repo's committed total.
Clicking any path:line-line opens the real file at that commit, read from git
objects with 25 lines of context either side and absolute line numbers — so a
reported range can be checked against the actual file rather than trusted.
Views are linkable: ?q=<query> runs a search (add &sess=<id> to include a
session's edits), ?t=<task> routes a task, ?tab=index|search|route switches.
This is served by the stack rather than published anywhere, because it has to reach Qdrant, Postgres and OpenRouter on localhost.
Checks
docker compose run --rm indexer python -m codeindex.cli verify-contents # reject blobs the bytes disqualify
docker compose run --rm indexer python -m codeindex.cli index # safe to re-run; unchanged blobs hit the cache
docker compose run --rm indexer python -m codeindex.cli extract # structural facts (~6s, pure function of the commit)
docker compose run --rm indexer python -m codeindex.cli edges # derive cross-repo coupling
docker compose run --rm indexer python -m codeindex.cli verify-index # reconcile manifest -> chunks -> points
docker compose run --rm indexer python scripts/eval_routing.py # routing regression suite (9 hand-verified cases)
docker compose run --rm indexer python scripts/eval_session.py # session overlay lifecycle (5 assertions)verify-index exits non-zero if any repo is short of points, and reconciles
against repo_commit.chunk_count rather than the blob_chunk cache -- that
cache is content-addressed and shared across repos and commits, so it
accumulates and cannot serve as a baseline.
The structural graph
Vector search answers "what looks like this". It cannot answer "what else breaks if I change this", because that is a question about structure — and structure is deterministic, so tree-sitter gives it up for free with no model and no ambiguity. Extraction over all seven repos takes ~6 seconds:
symbols | 6,253 |
calls | 52,911 |
routes | 476 (Django |
imports | 4,260 |
env keys | 336 |
celery tasks | 25 |
URL literals | 354 |
Calls are matched by name, not resolved to a definition. Resolution needs
type inference; a name match over 800 Python files is cheap, has no failure
modes, and answers the two questions that matter: who calls this, and which
other repo is coupled to it. Model.objects.filter(...) also records the root
of the dotted chain, so referencing a shared model counts as a usage rather than
being invisible behind filter.
Coupling rules
Chosen for what is genuinely invisible to a reader — an import graph misses all of these:
kind | evidence |
| a route registered in one repo, hardcoded as a URL in another |
| producer and consumer share only the task name |
| two services that must agree on a config key (skipped if >3 repos use it — that is a house convention, not a coupling) |
| the same top-level model class in two repos means a shared schema |
Real edges this found: intozi-ai-suite-backend-dev → docker-mangement via
/docker_event_summary_start, cloud-ikshana → intozi-ai-suite-backend-dev via
get_intozi_ai_recent_event_data/, and IntoziAiModelArchitectureMaster shared
between the suite and ml-ops backends.
route_task reports coupling filtered to the task: an edge is only listed
if its evidence appears in the code the search actually surfaced. Every repo
here is coupled to the largest one somehow, so listing a repo's couplings
wholesale says nothing about the task at hand. Counts read 2 here of 9 —
matched versus total — rather than overstating.
Session overlays
The server indexes commits, which is everything except the file the agent is
currently editing. So the agent sends its dirty files to sync_workspace and
they land in the same collection under scope=session:<id>:
sync_workspace(session_id="fix-alerts", repo="cloud-ikshana",
files={"path.py": "<contents>"}, deleted=["gone.py"])
search_code(query="...", session_id="fix-alerts") # sees the edits
end_session("fix-alerts")Shadowing happens in the Qdrant filter, not after retrieval: paths the
session has touched are excluded at main scope. Post-filtering cannot do this
— a deleted file has no session points to shadow with, so it would keep
returning its committed version forever.
Cost is proportional to what the agent touched. The other 5,400 chunks are
already embedded and stay that way, which is the entire point: nothing an agent
does can corrupt or re-cost the committed index. Overlays are dropped by
end_session and swept after 24 idle hours by the indexer loop, so a crashed
agent leaks nothing permanent.
Routing
route_task scores each repo on four signals and returns the ones that survive
a relative floor:
signal | weight | why |
peak | 0.48 | best chunk after cross-encoder rerank |
depth | 0.28 | mean of the top 5, so one lucky match is not enough |
spread | 0.10 | distinct files, saturating -- 35 files is not 4x the ownership of 8 |
prior | 0.14 | task vs the repo's card, for vocabulary matches with no standout chunk |
Reranking happens before grouping, because RRF fusion scores are rank-based
and not comparable across repos. The candidate pool is capped per repo, since
one repo holds 78% of all chunks and would otherwise crowd the alternatives out
of the reranker entirely. A final substance factor demotes repos whose
evidence is all fixtures and docs -- as a threshold, not a ratio, so a small
repo whose README genuinely explains its behaviour is not punished for that.
Retrieval design
Small corpus (~26k chunks), so quality wins over every efficiency trade:
no quantization, and
exact=Truewhile under 250k points — brute force with perfect recall instead of an HNSW approximation;two dense vectors per point: the code itself, and an LLM-written description of it. Task text is natural language and matches the latter far better than it matches Django internals;
a sparse
lexvector with server-side IDF, because tasks name exact identifiers that dense vectors miss;cross-encoder rerank of the fused top ~150 down to ~20. Largest single precision gain in the pipeline.
Status
Phases 0-4 done and verified end to end. 5,467 chunks across 7 repos, 100%
with an LLM summary, verify-index clean, routing 9/9 at rank 1, session
overlays 5/5, and a structural graph of 6,253 symbols / 52,911 calls / 476
routes with 90 cross-repo coupling edges. Measured: hybrid fusion ~900 ms
(including the query embedding round trip), cross-encoder rerank ~1.8 s,
extraction ~6 s for everything.
Next: real Bitbucket mirrors, so the index stops depending on whichever branch happens to be checked out locally.
Credential material is excluded, and there is some to deal with
Indexing a secret copies it into a vector store and then into agent context on
every loosely-related search, so credential material is rejected on the path
where possible (serviceAccountKey.json, .env, *.pem, *.key) and on the
bytes where not. Source files are handled at chunk granularity instead --
dropping all of settings.py or 25 chunks of backup_manager.py would cost
real code, so the file is indexed and only the offending chunk is held back.
Verified: 0 of 5,467 points contain credential markers.
What that turned up in the repos themselves is listed under Known gaps.
Known gaps
BACKENDis 267/305 files PyArmor-obfuscated -- 12.2 MB of hex-escaped bytecode against 14 KB of real source.looks_generatedrejects it. Readintozi-ai-suite-backend-devinstead; it holds the readable form.BACKENDis also a shallow single-commit clone, so incremental diffing cannot work there until a real mirror replaces it.34 of 5,512 chunks (0.6%) have no summary after a batch and a singleton retry. They still carry code and lexical vectors, and each index run retries them.
A Firebase/GCP service account key is committed at
intozi_ai_suite_api/intozi_alert_management/mobile_alert_notifications/serviceAccountKey.json, in bothBACKENDandintozi-ai-suite-backend-dev.A literal AWS access key id (
AKIA...) is hardcoded inintozi_ai_suite/settings.py,face_server/config.pyandintozi_ai_suite_api/intozi_consumer_management/msk_kafka.py. Excluded from the index; still in git history, which the index cannot fix.Cross-repo blob dedup is negligible here (8 blobs, 29 kB). The incremental case is what content addressing actually buys.
celery_taskderives 0 edges: the 25 tasks found are all called within their own repo. The rule is right, there is simply nothing to find yet.blob_chunkandembedding_cacheare keyed on blob sha without language. No blob in these repos is indexed under two languages, but the same content at two differently-typed paths would collide.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.MIT
- AlicenseNot gradedqualityCmaintenanceProvides semantic code search and retrieval capabilities for AI agents, enabling them to query codebases using natural language with automatic learning, hybrid search, and intelligent chunking of functions and classes.1629ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to intelligently navigate and understand codebases by providing instant file descriptions, semantic search, and context-aware recommendations, eliminating the need to repeatedly scan files.20MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to semantically search and navigate code repositories using natural language, with support for multiple repos, incremental indexing, and no local install needed.-
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/Knighthawk-Leo/RepoMind'
If you have feedback or need assistance with the MCP directory API, please join our Discord server