@henryqw/pi-codegraph 0.2.0 → 0.2.1
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.
- package/README.md +18 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@henryqw/pi-codegraph`
|
|
2
2
|
|
|
3
3
|
Get a separate [CodeGraph](https://github.com/colbymchenry/codegraph) index when you start Pi in a new Git worktree. Use CodeGraph's explore tool through pi-mcp-adapter from Pi.
|
|
4
4
|
|
|
@@ -10,7 +10,14 @@ pi install npm:pi-mcp-adapter
|
|
|
10
10
|
pi install npm:@henryqw/pi-codegraph
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Requires `codegraph` CLI on `PATH
|
|
13
|
+
Requires the `codegraph` CLI on `PATH` and [pi-mcp-adapter](https://github.com/nicobailon/pi-mcp-adapter).
|
|
14
|
+
|
|
15
|
+
## Works with
|
|
16
|
+
|
|
17
|
+
| Package | Relationship | Purpose |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| [`@colbymchenry/codegraph`](https://github.com/colbymchenry/codegraph) | Required | Builds the indexes and serves CodeGraph tools over MCP. |
|
|
20
|
+
| [`pi-mcp-adapter`](https://github.com/nicobailon/pi-mcp-adapter) | Required | Connects the MCP server to Pi. |
|
|
14
21
|
|
|
15
22
|
## Use
|
|
16
23
|
|
|
@@ -20,7 +27,15 @@ From the primary checkout, initialize CodeGraph once:
|
|
|
20
27
|
codegraph init --yes
|
|
21
28
|
```
|
|
22
29
|
|
|
23
|
-
Then launch `pi` in a linked worktree.
|
|
30
|
+
Then launch `pi` in a linked worktree. When the primary checkout has an index, pi-codegraph initializes a separate worktree index and exposes CodeGraph tools through pi-mcp-adapter.
|
|
31
|
+
|
|
32
|
+
| Surface | Type | Purpose |
|
|
33
|
+
| --- | --- | --- |
|
|
34
|
+
| `codegraph_explore` | tool | Lets agents explore the indexed code through CodeGraph. |
|
|
35
|
+
| `mcp` | tool | Lets agents call other CodeGraph tools through the `henryqw_pi-codegraph__codegraph` adapter server. |
|
|
36
|
+
| CodeGraph setup status | ui | Shows users setup progress and errors, and confirms a new worktree index is ready. |
|
|
37
|
+
|
|
38
|
+
The adapter discovers tools lazily.
|
|
24
39
|
|
|
25
40
|
## Flow
|
|
26
41
|
|