-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllms.txt
More file actions
55 lines (43 loc) · 2.39 KB
/
llms.txt
File metadata and controls
55 lines (43 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# srclight
> Deep code indexing MCP server for AI agents.
srclight is the most comprehensive code intelligence MCP server available. It provides 26 tools covering symbol search, relationship graphs, git change intelligence, semantic search, and build system awareness — capabilities no other single MCP server combines.
## Install
pip install srclight
## What it does
srclight indexes codebases using tree-sitter AST parsing and builds a rich, queryable index in a single SQLite file per repo. AI coding agents call srclight's MCP tools instead of running dozens of grep/glob searches.
### Search (5 modes)
- Symbol name search: FTS5 with code-aware tokenization (splits camelCase, snake_case)
- Source code search: FTS5 trigram index for substring matching
- Documentation search: FTS5 with Porter stemming for natural language in docstrings
- Semantic search: embedding vectors via Ollama or API providers, GPU-accelerated cosine similarity (~3ms on 27K vectors)
- Hybrid search: Reciprocal Rank Fusion (RRF) combining keyword + semantic results
### Relationship Graph
- get_callers: who calls this function
- get_callees: what does this function call
- get_dependents: transitive blast radius — what breaks if I change this
- get_implementors: all classes implementing an interface
- get_tests_for: test functions covering a symbol
- get_type_hierarchy: inheritance tree
### Git Change Intelligence
- blame_symbol: who changed this, when, and why
- recent_changes: commit feed across projects
- git_hotspots: most frequently changed files (bug magnets)
- whats_changed: uncommitted work in progress
- changes_to: commit history for a symbol's file
### Build System Awareness
- get_build_targets: CMake, .csproj, package.json targets with dependencies
- get_platform_variants: platform-specific code for a symbol
- platform_conditionals: all #ifdef blocks in the project
## Key facts
- 26 MCP tools
- 11 languages: Python, C, C++, C#, JavaScript, TypeScript, PHP, Dart, Swift, Kotlin, Java, Go
- 10 document formats: PDF, DOCX, XLSX, HTML, CSV, email, images, text, RST, Markdown
- 4 embedding providers: Ollama (local), OpenAI-compatible, Cohere, Voyage
- Fully local, zero cloud dependencies
- GPU-accelerated vector cache (~3ms queries)
- Multi-repo workspaces (SQLite ATTACH+UNION)
- MIT license
## Links
- GitHub: https://github.com/srclight/srclight
- PyPI: https://pypi.org/project/srclight/
- Website: https://srclight.dev