graphlore 0.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- graphlore/__init__.py +7 -0
- graphlore/__main__.py +12 -0
- graphlore/agents_md.py +96 -0
- graphlore/algorithms.py +311 -0
- graphlore/apis.py +617 -0
- graphlore/cli.py +133 -0
- graphlore/clients.py +260 -0
- graphlore/config.py +68 -0
- graphlore/embed.py +233 -0
- graphlore/engine.py +379 -0
- graphlore/graph.py +1643 -0
- graphlore/history.py +198 -0
- graphlore/imports.py +581 -0
- graphlore/oauth.py +169 -0
- graphlore/resolve.py +332 -0
- graphlore/review.py +1121 -0
- graphlore/routes.py +1417 -0
- graphlore/scope.py +362 -0
- graphlore/search.py +1070 -0
- graphlore/server.py +8152 -0
- graphlore/spans.py +1254 -0
- graphlore/viewer.html +1649 -0
- graphlore/viz.py +381 -0
- graphlore-0.7.0.dist-info/METADATA +379 -0
- graphlore-0.7.0.dist-info/RECORD +28 -0
- graphlore-0.7.0.dist-info/WHEEL +4 -0
- graphlore-0.7.0.dist-info/entry_points.txt +2 -0
- graphlore-0.7.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: graphlore
|
|
3
|
+
Version: 0.7.0
|
|
4
|
+
Summary: MCP server that lets AI coding assistants navigate a codebase through a knowledge graph it builds itself (Rust and tree-sitter, 14 languages): semantic code search, impact analysis, token-budgeted subgraphs and exact source spans.
|
|
5
|
+
Project-URL: Homepage, https://github.com/yasinyaman/graphlore
|
|
6
|
+
Project-URL: Repository, https://github.com/yasinyaman/graphlore
|
|
7
|
+
Project-URL: Issues, https://github.com/yasinyaman/graphlore/issues
|
|
8
|
+
Project-URL: Documentation, https://github.com/yasinyaman/graphlore/tree/master/docs
|
|
9
|
+
Project-URL: Changelog, https://github.com/yasinyaman/graphlore/blob/master/CHANGELOG.md
|
|
10
|
+
Project-URL: Graphify, https://graphify.net
|
|
11
|
+
Author: yasinyaman
|
|
12
|
+
License: MIT
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Keywords: ai,ai-agents,claude,claude-code,code-graph,code-navigation,code-search,codebase,coding-assistant,graphify,graphlore,impact-analysis,knowledge-graph,llm,mcp,mcp-server,model-context-protocol,semantic-search,static-analysis,tree-sitter
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
25
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
26
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
27
|
+
Requires-Python: >=3.10
|
|
28
|
+
Requires-Dist: mcp<3.0,>=2.1
|
|
29
|
+
Provides-Extra: all
|
|
30
|
+
Requires-Dist: graphifyy; extra == 'all'
|
|
31
|
+
Requires-Dist: graphlore-engine<0.6,>=0.5.79; extra == 'all'
|
|
32
|
+
Requires-Dist: model2vec>=0.10; extra == 'all'
|
|
33
|
+
Requires-Dist: numpy>=1.24; extra == 'all'
|
|
34
|
+
Requires-Dist: pyjwt[crypto]>=2.8; extra == 'all'
|
|
35
|
+
Requires-Dist: semble>=0.3; extra == 'all'
|
|
36
|
+
Requires-Dist: tiktoken>=0.7; extra == 'all'
|
|
37
|
+
Requires-Dist: tree-sitter-language-pack<2.0,>=1.11; extra == 'all'
|
|
38
|
+
Requires-Dist: tree-sitter<1.0,>=0.23; extra == 'all'
|
|
39
|
+
Requires-Dist: watchdog>=4.0; extra == 'all'
|
|
40
|
+
Provides-Extra: dev
|
|
41
|
+
Requires-Dist: mypy>=1.12; extra == 'dev'
|
|
42
|
+
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
|
|
43
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
44
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
45
|
+
Provides-Extra: embed
|
|
46
|
+
Requires-Dist: model2vec>=0.10; extra == 'embed'
|
|
47
|
+
Requires-Dist: numpy>=1.24; extra == 'embed'
|
|
48
|
+
Provides-Extra: engine
|
|
49
|
+
Requires-Dist: graphlore-engine<0.6,>=0.5.79; extra == 'engine'
|
|
50
|
+
Provides-Extra: graphify
|
|
51
|
+
Requires-Dist: graphifyy; extra == 'graphify'
|
|
52
|
+
Provides-Extra: remote
|
|
53
|
+
Requires-Dist: pyjwt[crypto]>=2.8; extra == 'remote'
|
|
54
|
+
Provides-Extra: semble
|
|
55
|
+
Requires-Dist: semble>=0.3; extra == 'semble'
|
|
56
|
+
Provides-Extra: tiktoken
|
|
57
|
+
Requires-Dist: tiktoken>=0.7; extra == 'tiktoken'
|
|
58
|
+
Provides-Extra: treesitter
|
|
59
|
+
Requires-Dist: tree-sitter-language-pack<2.0,>=1.11; extra == 'treesitter'
|
|
60
|
+
Requires-Dist: tree-sitter<1.0,>=0.23; extra == 'treesitter'
|
|
61
|
+
Provides-Extra: watch
|
|
62
|
+
Requires-Dist: watchdog>=4.0; extra == 'watch'
|
|
63
|
+
Description-Content-Type: text/markdown
|
|
64
|
+
|
|
65
|
+
# graphlore: an MCP server for codebase knowledge graphs
|
|
66
|
+
|
|
67
|
+
<!-- mcp-name: io.github.yasinyaman/graphlore -->
|
|
68
|
+
|
|
69
|
+
[](https://github.com/yasinyaman/graphlore/actions/workflows/ci.yml)
|
|
70
|
+
[](LICENSE)
|
|
71
|
+
[](https://www.python.org/)
|
|
72
|
+
|
|
73
|
+
**graphlore is a Model Context Protocol (MCP) server that lets AI coding
|
|
74
|
+
assistants navigate a codebase through its knowledge graph, instead of grepping
|
|
75
|
+
and reading file after file.** It builds the graph with its own extractor
|
|
76
|
+
(Rust and tree-sitter, 14 languages), and still reads one built by
|
|
77
|
+
[Graphify](https://graphify.net); it joins every node to its real `start..end`
|
|
78
|
+
source span (Python via `ast`, other languages via tree-sitter), and answers
|
|
79
|
+
the questions text search cannot: who calls this, what breaks if it changes,
|
|
80
|
+
where a behavior lives.
|
|
81
|
+
|
|
82
|
+
- **Find code by what it does.** `graphlore_locate("where are failed requests retried?")`
|
|
83
|
+
returns the enclosing symbol, its neighborhood and similar-but-unconnected
|
|
84
|
+
code in one call: about 235 tokens, against about 61,800 for grep + read on
|
|
85
|
+
httpx ([benchmark](#benchmark)).
|
|
86
|
+
- **See the blast radius of a change.** `graphlore_impact("Response")` lists
|
|
87
|
+
what depends on a symbol, production code before tests, each row with
|
|
88
|
+
`file:line`.
|
|
89
|
+
- **Read only the code you need.** `graphlore_fetch` returns a symbol's exact
|
|
90
|
+
span under a token budget.
|
|
91
|
+
- **Know how far to trust an answer.** Results say how a name was matched, what
|
|
92
|
+
a budget cut left out, and which files changed since the graph was built.
|
|
93
|
+
- **Local by default.** The analysis tools read local files and need no API
|
|
94
|
+
key; `GRAPHLORE_OFFLINE=1` refuses every network path graphlore knows.
|
|
95
|
+
|
|
96
|
+
It works with any MCP client. Setup for Claude Code and Claude Desktop is below.
|
|
97
|
+
|
|
98
|
+
## Quick start
|
|
99
|
+
|
|
100
|
+
**Claude Code plugin** (needs [`uv`](https://docs.astral.sh/uv/)): installs the
|
|
101
|
+
server, graphlore's native engine and an exploration skill, with nothing to configure.
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
/plugin install graphlore --marketplace yasinyaman/graphlore
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
On Claude Code older than 2.1.275, run `/plugin marketplace add yasinyaman/graphlore`
|
|
108
|
+
and then `/plugin install graphlore@graphlore`.
|
|
109
|
+
|
|
110
|
+
**Codex, GitHub Copilot CLI and Gemini CLI plugins** (also need `uv`): the same
|
|
111
|
+
repository installs there as a plugin, with the server and the skill.
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
codex plugin marketplace add yasinyaman/graphlore && codex plugin add graphlore@graphlore
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
copilot plugin marketplace add yasinyaman/graphlore && copilot plugin install graphlore@graphlore
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
gemini extensions install https://github.com/yasinyaman/graphlore
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The other clients and what each plugin carries are in
|
|
126
|
+
[clients](https://github.com/yasinyaman/graphlore/blob/master/docs/clients.md#install-as-a-plugin).
|
|
127
|
+
|
|
128
|
+
**Any other MCP client**: install graphlore with its native engine, which builds
|
|
129
|
+
the graph (prebuilt wheels, no Rust toolchain), then register the server.
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
# graphlore is not on PyPI yet: install from GitHub
|
|
133
|
+
pip install "graphlore[engine] @ git+https://github.com/yasinyaman/graphlore"
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Then let graphlore write your client's config, and the usage guide its agent
|
|
137
|
+
reads (`AGENTS.md`, `GEMINI.md`, Copilot's instructions):
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
graphlore setup codex --write --with-agents-md
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`graphlore clients` lists the clients it knows: Claude Code, Claude Desktop,
|
|
144
|
+
OpenAI Codex CLI, Google Gemini CLI, Cursor, VS Code (GitHub Copilot), Kimi
|
|
145
|
+
Code CLI, Zed, Windsurf and Cline. Without `--write` it prints the block and
|
|
146
|
+
where it goes. For any other MCP client the block is:
|
|
147
|
+
|
|
148
|
+
```json
|
|
149
|
+
{
|
|
150
|
+
"mcpServers": {
|
|
151
|
+
"graphlore": {
|
|
152
|
+
"command": "graphlore",
|
|
153
|
+
"env": { "GRAPHLORE_PROJECT_DIR": "/absolute/path/to/your/project" }
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Each client's file, key and limits (tool caps, output truncation, prompts):
|
|
160
|
+
[docs/clients.md](https://github.com/yasinyaman/graphlore/blob/master/docs/clients.md).
|
|
161
|
+
|
|
162
|
+
Optional extras, installed as `graphlore[extra]`: `engine` (graphlore's native
|
|
163
|
+
extractor, which builds the graph), `embed` (static code
|
|
164
|
+
embeddings for the built-in search behind `graphlore_locate`), `semble` (semble
|
|
165
|
+
as that search instead), `treesitter` (spans for non-Python
|
|
166
|
+
languages; without it the native engine's compiled-in grammars give them), `tiktoken` (exact token
|
|
167
|
+
counts), `watch` (re-sync on file changes). Until the first PyPI release, use
|
|
168
|
+
the GitHub form wherever a message says `pip install "graphlore[extra]"`:
|
|
169
|
+
`pip install "graphlore[semble] @ git+https://github.com/yasinyaman/graphlore"`.
|
|
170
|
+
|
|
171
|
+
**Then ask.** The assistant builds the graph once and explores from there
|
|
172
|
+
(output from the repository's small test fixture):
|
|
173
|
+
|
|
174
|
+
```text
|
|
175
|
+
graphlore_build(".") # once; graphlore_build(".", update=True) after changes
|
|
176
|
+
graphlore_overview() # size, hubs, subsystems, suggested next steps
|
|
177
|
+
graphlore_impact("Response", hops=1)
|
|
178
|
+
|
|
179
|
+
2 node(s) depend on Response (≤1 hops, direction=dependents):
|
|
180
|
+
Client (distance 1) [returns] def: httpx/_client.py:50
|
|
181
|
+
DigestAuth (distance 1) [inferred] def: httpx/_auth.py:120
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
A misspelled name gets a suggestion, not a guess:
|
|
185
|
+
`No node matching 'Clinet'. Did you mean: Client (httpx/_client.py:50)?`
|
|
186
|
+
|
|
187
|
+
**Or look at it.** Every build also writes `graphify-out/graph.html`, one file
|
|
188
|
+
that opens in any browser with no network: the communities first, then one
|
|
189
|
+
community or one symbol's neighbourhood, with search and a details panel. The
|
|
190
|
+
same page opens any graph.json, graphlore's or Graphify's, without graphlore
|
|
191
|
+
installed: [the viewer on GitHub Pages](https://yasinyaman.github.io/graphlore/viewer/)
|
|
192
|
+
reads the file you drop in your browser and uploads nothing
|
|
193
|
+
([demo](https://yasinyaman.github.io/graphlore/viewer/demo.html)). A node's page copies
|
|
194
|
+
the `graphlore_explain` / `graphlore_fetch` call for it, so what you find there goes
|
|
195
|
+
straight to the assistant, and the address bar keeps the view, so a link opens it again.
|
|
196
|
+
The page also shows what graphlore's tools find: import and call cycles, shared
|
|
197
|
+
state with no call path, surprising links and unreferenced code (**Findings**, `G`),
|
|
198
|
+
and a node's blast radius as `graphlore_impact` walks it (**Impact**, `I`).
|
|
199
|
+
|
|
200
|
+
## Tools
|
|
201
|
+
|
|
202
|
+
The server starts on the `lean` surface, 12 tools that cover the whole explore
|
|
203
|
+
loop (orient, find, traverse, blast radius, read the code). A small surface
|
|
204
|
+
helps a model pick the right tool.
|
|
205
|
+
|
|
206
|
+
| Tool | What it answers |
|
|
207
|
+
|---|---|
|
|
208
|
+
| `graphlore_overview` | Call first: size, most connected nodes, communities, suggested next steps |
|
|
209
|
+
| `graphlore_locate` | A question or a name → the enclosing symbol, its subgraph and hidden links (built-in search; better with `[embed]` or `[semble]`) |
|
|
210
|
+
| `graphlore_search` | Which nodes match this name or id |
|
|
211
|
+
| `graphlore_neighbors` | The direct neighbors of a node |
|
|
212
|
+
| `graphlore_subgraph` | The neighborhood around a node, under a token budget |
|
|
213
|
+
| `graphlore_impact` | Blast radius: what depends on a node, or what it depends on, and the chokepoints it funnels through |
|
|
214
|
+
| `graphlore_node_details` | A node's type, `file:line`, docstring and community |
|
|
215
|
+
| `graphlore_fetch` | A node's source code: the exact span, under a token budget |
|
|
216
|
+
| `graphlore_communities` | The subsystems (Leiden communities) of the codebase |
|
|
217
|
+
| `graphlore_freshness` | Is the graph stale against git: fresh, update or rebuild |
|
|
218
|
+
| `graphlore_build` | Build or update the graph with graphlore's native engine (graphify when the engine is not installed) |
|
|
219
|
+
| `graphlore_project` | Show or switch the project directory the server reads |
|
|
220
|
+
|
|
221
|
+
`GRAPHLORE_TOOLSET=full` exposes all 34: structure review (import and call
|
|
222
|
+
cycles, layer rules, bridges and cut points, dead-code candidates, same-named
|
|
223
|
+
symbols, duplication, PageRank and betweenness),
|
|
224
|
+
framework routes and package API usage, tests for a symbol, signatures, git
|
|
225
|
+
diffs, community naming, natural-language queries and paths between nodes. The Claude Code
|
|
226
|
+
plugin runs on `full`.
|
|
227
|
+
|
|
228
|
+
→ [Tool reference](https://github.com/yasinyaman/graphlore/blob/master/docs/tools.md)
|
|
229
|
+
(all 34 tools, resources, prompts) ·
|
|
230
|
+
[choosing a toolset](https://github.com/yasinyaman/graphlore/blob/master/docs/configuration.md#which-toolset)
|
|
231
|
+
|
|
232
|
+
## Benchmark
|
|
233
|
+
|
|
234
|
+
Tokens that reach the model to orient it in a code area, averaged over 6
|
|
235
|
+
queries on `encode/httpx` (2,101-node graph):
|
|
236
|
+
|
|
237
|
+
| Approach | Tokens | Calls | Graph structure | Semantic search | Hidden links |
|
|
238
|
+
|---|---|---|---|---|---|
|
|
239
|
+
| grep + read | 61,836 | ~14 | — | — | 0 |
|
|
240
|
+
| semble alone | 1,613 | 1 | — | ✓ | 0 |
|
|
241
|
+
| Graphify alone | 1,107 | 1 | ✓ | — | 0 |
|
|
242
|
+
| semble + Graphify, separately | 2,721 | 4 | ✓ | ✓ | 0 |
|
|
243
|
+
| **`graphlore_locate`** | **235** | **1** | ✓ | ✓ | **7** |
|
|
244
|
+
|
|
245
|
+
That is 263× fewer tokens than grep + read and 11.6× fewer than running the two
|
|
246
|
+
tools separately. Those 235 tokens are a map (`file:line` plus neighborhood),
|
|
247
|
+
not the code; the code is fetched only where needed. Across Python, JS/TS, Go,
|
|
248
|
+
Java, Rust and C++ repositories, 70–96% of semantic hits land inside the
|
|
249
|
+
resolved symbol's real span.
|
|
250
|
+
|
|
251
|
+
Every repository measured is an HTTP-client library and the baseline is a naive
|
|
252
|
+
grep, so treat the numbers as indicative.
|
|
253
|
+
|
|
254
|
+
The search behind `locate` was measured on its own on semble's published query
|
|
255
|
+
set (1,251 queries, 63 repositories, 19 languages, semble's scoring): the
|
|
256
|
+
built-in BM25 index, with no extra installed, reaches NDCG@10 0.814 against
|
|
257
|
+
semble's 0.852, with a median cold index of 0.6 s and a median query of 1 ms.
|
|
258
|
+
→ [Method, per-language results and caveats](https://github.com/yasinyaman/graphlore/blob/master/docs/benchmark.md)
|
|
259
|
+
|
|
260
|
+
## FAQ
|
|
261
|
+
|
|
262
|
+
### What is graphlore used for?
|
|
263
|
+
|
|
264
|
+
Giving an AI coding assistant a cheap, structural view of a repository:
|
|
265
|
+
onboarding to unfamiliar code, tracing how a feature works end to end, finding
|
|
266
|
+
what a change would break, and reviewing structure (cycles, layering, dead or
|
|
267
|
+
duplicated code).
|
|
268
|
+
|
|
269
|
+
### How is it different from Graphify's own MCP server?
|
|
270
|
+
|
|
271
|
+
graphlore builds its own graph (its native engine, in Rust), so it does not
|
|
272
|
+
need graphify installed, and it reads a graph Graphify built too. Graphify's embedded server has graph navigation,
|
|
273
|
+
token-budgeted subgraphs, an HTTP transport, multi-project serving and PR
|
|
274
|
+
triage tools graphlore lacks. graphlore adds the span engine and
|
|
275
|
+
what it makes possible: semantic `locate` joined to the enclosing symbol,
|
|
276
|
+
source hydration (`fetch`, `skeleton`), route and package-API extraction,
|
|
277
|
+
cosmetic-vs-structural freshness, and calls through a module object
|
|
278
|
+
(`mod.func()`) that the graph leaves out. Prefer one server per project.
|
|
279
|
+
→ [How graphlore works](https://github.com/yasinyaman/graphlore/blob/master/docs/concepts.md)
|
|
280
|
+
|
|
281
|
+
### Does it replace grep?
|
|
282
|
+
|
|
283
|
+
No. An exact identifier is found faster with `rg`. graphlore earns its place on
|
|
284
|
+
multi-hop questions (who calls this, what breaks if it changes) and on
|
|
285
|
+
orientation in unfamiliar code. Every answer carries `file:line`, so it can be
|
|
286
|
+
checked with a plain read.
|
|
287
|
+
|
|
288
|
+
### Is it an agent memory?
|
|
289
|
+
|
|
290
|
+
No. It has no remember or recall tools and keeps no notes between sessions. It
|
|
291
|
+
is a read-mostly view of a code graph; the only thing it persists is community
|
|
292
|
+
names.
|
|
293
|
+
|
|
294
|
+
### Does it need an API key or send my code anywhere?
|
|
295
|
+
|
|
296
|
+
The analysis tools read local files and need no key. A few paths can reach the
|
|
297
|
+
network: the first embedding search (`[embed]` or `[semble]`) downloads a model, the first use
|
|
298
|
+
of a language downloads its tree-sitter grammar (the native engine's grammars
|
|
299
|
+
are compiled in and download nothing), graphify, where it still builds the
|
|
300
|
+
graph, can call an LLM backend when you set its key, and `graphlore_add`
|
|
301
|
+
fetches a URL.
|
|
302
|
+
`GRAPHLORE_OFFLINE=1` refuses or restricts the ones graphlore controls; the
|
|
303
|
+
table linked below also lists what it cannot constrain.
|
|
304
|
+
→ [What reaches the network, and when](https://github.com/yasinyaman/graphlore/blob/master/docs/configuration.md#what-reaches-the-network-and-when)
|
|
305
|
+
|
|
306
|
+
### Which languages are supported?
|
|
307
|
+
|
|
308
|
+
The native engine builds the graph for Python, JavaScript, TypeScript/TSX, Go,
|
|
309
|
+
Java, Kotlin, Scala, C#, Rust, Swift, C, C++, Ruby and PHP, and gives their
|
|
310
|
+
spans from its compiled-in grammars. Without the engine, Python works through
|
|
311
|
+
the standard library and the other languages tree-sitter covers need the
|
|
312
|
+
`[treesitter]` extra; without either, non-Python files fall back to
|
|
313
|
+
nearest-line matching. Package-API extraction reads all of
|
|
314
|
+
these; route extraction reads Python, JS/TS, Go, Java, Kotlin, C#, Rust, Ruby
|
|
315
|
+
and PHP frameworks
|
|
316
|
+
([tool reference](https://github.com/yasinyaman/graphlore/blob/master/docs/tools.md)),
|
|
317
|
+
and both say which files they did not read.
|
|
318
|
+
[What was measured in each language](https://github.com/yasinyaman/graphlore/blob/master/docs/benchmark-polyglot.md),
|
|
319
|
+
on 31 real repositories.
|
|
320
|
+
|
|
321
|
+
### Does graphlore_locate need semble or an embedding model?
|
|
322
|
+
|
|
323
|
+
No. graphlore has its own search index: one chunk per function, method or
|
|
324
|
+
class, ranked with identifier-aware BM25, so `graphlore_locate` works in a
|
|
325
|
+
default install and every hit lands on its graph node. The `[embed]` extra adds
|
|
326
|
+
static code embeddings, which match a question to code that uses other words;
|
|
327
|
+
with the `[semble]` extra, semble answers instead. Each reply's `backend` field
|
|
328
|
+
says which search answered.
|
|
329
|
+
→ [The search bridge](https://github.com/yasinyaman/graphlore/blob/master/docs/concepts.md#search-bridge-built-in-index-or-semble)
|
|
330
|
+
|
|
331
|
+
### Why do I see only 12 tools?
|
|
332
|
+
|
|
333
|
+
`lean` is the default surface. Set `GRAPHLORE_TOOLSET=full` for all 34.
|
|
334
|
+
|
|
335
|
+
### How does the graph stay up to date?
|
|
336
|
+
|
|
337
|
+
`graphlore_freshness` says whether to update or rebuild, and
|
|
338
|
+
`graphlore_build(".", update=True)` re-extracts changed files. Answers also flag
|
|
339
|
+
their own files that changed since the build. A git post-commit hook or the
|
|
340
|
+
opt-in watcher automates it.
|
|
341
|
+
→ [Keeping the graph fresh](https://github.com/yasinyaman/graphlore/blob/master/docs/concepts.md#keeping-the-graph-fresh)
|
|
342
|
+
|
|
343
|
+
### Was this project called graphify-mcp?
|
|
344
|
+
|
|
345
|
+
Yes. It was renamed because `graphifyy` ships a `graphify-mcp` command of its
|
|
346
|
+
own. The old `GRAPHIFY_*` environment variables still work.
|
|
347
|
+
|
|
348
|
+
## Known limits
|
|
349
|
+
|
|
350
|
+
- One active project at a time; `graphlore_project` switches it (stdio only).
|
|
351
|
+
- graphlore's own extractor (`engine/`, Rust, the `engine` extra) builds the
|
|
352
|
+
graph: definitions, spans, imports, calls, bases and type references in 14
|
|
353
|
+
languages, resolved from the source, with its own communities and incremental
|
|
354
|
+
updates. Without it the `graphify` CLI builds it; graphify, and with it
|
|
355
|
+
`graphlore_add` and `mode="deep"`, goes in the next release.
|
|
356
|
+
- No PR or review-thread tooling.
|
|
357
|
+
- Calls through an object, a callback or dynamic dispatch are not in the graph,
|
|
358
|
+
so an empty answer means "no edge was indexed", not "nothing calls this".
|
|
359
|
+
|
|
360
|
+
## Documentation
|
|
361
|
+
|
|
362
|
+
- [Tool reference](https://github.com/yasinyaman/graphlore/blob/master/docs/tools.md): all 34 tools, resources, prompts, what a result carries
|
|
363
|
+
- [MCP clients](https://github.com/yasinyaman/graphlore/blob/master/docs/clients.md): setting up Codex, Gemini CLI, Cursor, Copilot, Kimi, Zed, Windsurf, Cline and Claude, and what each one shows the model
|
|
364
|
+
- [How graphlore works](https://github.com/yasinyaman/graphlore/blob/master/docs/concepts.md): resolved edges, import checks, analysis scope, freshness, the search bridge, naming communities
|
|
365
|
+
- [Configuration](https://github.com/yasinyaman/graphlore/blob/master/docs/configuration.md): toolsets, HTTP transport and security, offline mode, environment variables
|
|
366
|
+
- [Benchmark](https://github.com/yasinyaman/graphlore/blob/master/docs/benchmark.md): method, cross-language results, caveats
|
|
367
|
+
- [Native engine](https://github.com/yasinyaman/graphlore/blob/master/docs/native-engine.md): graphlore's own extractor in Rust, compared with graphify on 31 repositories, and the roadmap
|
|
368
|
+
- [Changelog](https://github.com/yasinyaman/graphlore/blob/master/CHANGELOG.md) · [Contributing](https://github.com/yasinyaman/graphlore/blob/master/CONTRIBUTING.md) · [Guidance for coding agents](https://github.com/yasinyaman/graphlore/blob/master/AGENTS.md)
|
|
369
|
+
|
|
370
|
+
## Development
|
|
371
|
+
|
|
372
|
+
```bash
|
|
373
|
+
pip install -e ".[dev,treesitter]"
|
|
374
|
+
ruff check .
|
|
375
|
+
mypy
|
|
376
|
+
pytest -q
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
Licensed under [MIT](LICENSE).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
graphlore/__init__.py,sha256=waSu9AAp_3gpfzFVp5lkc5JI-sfosDffqlWYpVGn4M0,328
|
|
2
|
+
graphlore/__main__.py,sha256=-_BN4kkx_RLMbKXNOm_HCMY0ii-tk9qY9JA30H4TIGc,308
|
|
3
|
+
graphlore/agents_md.py,sha256=uyUT6aiO02Z3_Q9dZKae7xBQwztE8SBJylvA8dL3-7w,4640
|
|
4
|
+
graphlore/algorithms.py,sha256=GtX4cLNA-mLZKssvHNzbuvKJfiWLHS6LJ-BGKKkENgc,11880
|
|
5
|
+
graphlore/apis.py,sha256=JgHsz6tz6PPLhigLRrahbKpA8S8XKk3JnV2Cm1IGUEs,26085
|
|
6
|
+
graphlore/cli.py,sha256=z-LTPzrGia-hGZheIpmTXGbHOAfABd4Rfn02Yvr14zk,5313
|
|
7
|
+
graphlore/clients.py,sha256=C6GnAuiI2N5F9XSRGspOhbkj8JQPU1mNVOZb3oK7jAQ,11852
|
|
8
|
+
graphlore/config.py,sha256=7Jy-2HVhLxV4EU_W0Li8PtcTyBsSIHvRZmLVU8jZMWQ,2693
|
|
9
|
+
graphlore/embed.py,sha256=R2eJTzNQQ1GvyTGd0HpgOnBQgU79f7RBvTY9YMbq3YQ,9086
|
|
10
|
+
graphlore/engine.py,sha256=jqsBao7capqRLk9mMjDHG7UUWDb_ZRXJvTIcFDzc7Ic,16792
|
|
11
|
+
graphlore/graph.py,sha256=WTBYkxPvCmuH6yV1ZuM5j5VGZoxTYT0H4d-Alcb6Gpw,69405
|
|
12
|
+
graphlore/history.py,sha256=fmwK0aRu9zIUGqIoBIZNxBp7mc3zveVsUsyk0CyyAjg,7591
|
|
13
|
+
graphlore/imports.py,sha256=wpJq8lSQH5ULvP-oqf7_9Cs_NraLKNHtY2DqqXt2v2A,26494
|
|
14
|
+
graphlore/oauth.py,sha256=2Fq2QHYXlRb2y8lLOTyYjdQAcRcxMtn3dadJmCcWKDY,7665
|
|
15
|
+
graphlore/resolve.py,sha256=Qs27YKR8GAaDcxp0YtSQulm74NHIRmxTz3-Z8yYYUow,13783
|
|
16
|
+
graphlore/review.py,sha256=86SIuLQoCWtmhoLV4SsXVaMexxiXrmxoMkZtOQ5S_po,47005
|
|
17
|
+
graphlore/routes.py,sha256=SgdBN6w0kBpD7sTaz9TkWP4Q_il1PX-AaqJdSpYf5Gw,66286
|
|
18
|
+
graphlore/scope.py,sha256=fTFC2XxtPlZj8KYDVAYLg2IhqKkUgOIGZCHehJd7y9o,14660
|
|
19
|
+
graphlore/search.py,sha256=U3VLjC6nXqzBRasuEi5AzsKgTGDp-3orqzEdKzYjbcw,43234
|
|
20
|
+
graphlore/server.py,sha256=XjLJDY7dXxVtlfR2AgGGvfdrmKkecUKQX0cpdeTX-5Y,358067
|
|
21
|
+
graphlore/spans.py,sha256=eRCpbv8Qjj1yAr7jE5WXQXPEsWuBGEFoLeYnR5phBkQ,56804
|
|
22
|
+
graphlore/viewer.html,sha256=psGKPveX8gtrpVaOSKuhTGlll5E9uMYw5MEXPgTUzPw,85766
|
|
23
|
+
graphlore/viz.py,sha256=1Eqx0vb79shn3RjdCP7YfCEKQR7It_OjmuISpC2V21c,15236
|
|
24
|
+
graphlore-0.7.0.dist-info/METADATA,sha256=TplatTxvoBbbU4fUq9HddljloUmh-4GetpCoPlwQXl0,19331
|
|
25
|
+
graphlore-0.7.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
26
|
+
graphlore-0.7.0.dist-info/entry_points.txt,sha256=ucwawo5FHIIMKTSoEI_9qhZ9Fczx1F689QPtsWIZzs0,49
|
|
27
|
+
graphlore-0.7.0.dist-info/licenses/LICENSE,sha256=1H0hMUzRfLYiYRzqLKG74rccJhNy7Ty0UTSjVSpFSOA,1067
|
|
28
|
+
graphlore-0.7.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 yasinyaman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|