claude-os/mcp_server
Rosie Val 403b4e8c5f Fix selective semantic indexing pulling in .venv/node_modules garbage
_run_semantic_indexing_background and _run_semantic_indexing_sync both
select doc files with Path(project_path).rglob("*.md"/"*.txt"/"*.rst")
and no directory exclusion at all - unlike the tree-sitter code-file
selection right next to it, which already filters via
TreeSitterIndexer.SKIP_DIRS.

For a project with a .venv checked into its own directory, this pulled
in hundreds of unrelated site-packages files (LICENSE.txt, dist-info
top_level.txt, vendored library .rst docs) as "important" project
knowledge, drowning out the actual project's docs and code in every
KB built with selective indexing. Confirmed live: Ody-project_index
had .venv/lib/python3.11/site-packages/... entries making up most of
its 67 documents.

Filter with the already-existing should_skip_path() from
app.core.ingestion (same SKIP_DIRECTORIES used by ingest_directory)
instead of writing a second exclusion list.
2026-08-22 20:14:45 -04:00
..
tools first commit 2025-10-22 13:29:28 -05:00
__init__.py first commit 2025-10-22 13:29:28 -05:00
auth.py Add a service-token bypass for code-forge, gated on auth being enabled 2026-08-22 16:42:03 -04:00
claude_code_mcp.py Add a service-token bypass for code-forge, gated on auth being enabled 2026-08-22 16:42:03 -04:00
server.py Fix selective semantic indexing pulling in .venv/node_modules garbage 2026-08-22 20:14:45 -04:00