callgraph-mcp 1.5.3 → 1.5.4
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 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,21 +83,17 @@ Then point your client at it:
|
|
|
83
83
|
|
|
84
84
|
Optional parameters shown in `[brackets]`.
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
<tr><td><code>flowmap_find_cycles</code></td><td><code>workspacePath</code>, [<code>minCycleLength</code>], [<code>exclude</code>]</td><td>All circular call chains with exact edges</td></tr>
|
|
98
|
-
<tr><td><code>flowmap_find_duplicates</code> <em>(experimental)</em></td><td><code>workspacePath</code>, [<code>similarityThreshold</code>=0.75], [<code>minCallees</code>=2], [<code>exclude</code>]</td><td>Function clusters with similar callee sets</td></tr>
|
|
99
|
-
</tbody>
|
|
100
|
-
</table>
|
|
86
|
+
| Tool | Parameters | Returns |
|
|
87
|
+
|------|------------|---------|
|
|
88
|
+
| `flowmap_analyze_workspace` | `workspacePath`, [`exclude`], [`language`] | Full call graph: nodes, edges, flows, orphans |
|
|
89
|
+
| `flowmap_analyze_file` | `filePath` | Functions and call sites in one file |
|
|
90
|
+
| `flowmap_get_callers` | `functionName`, `workspacePath` | Direct callers of the function |
|
|
91
|
+
| `flowmap_get_callees` | `functionName`, `workspacePath` | Functions the named function calls |
|
|
92
|
+
| `flowmap_get_flow` | `functionName`, `workspacePath`, [`maxDepth`=10] | Full BFS subgraph reachable from a function |
|
|
93
|
+
| `flowmap_list_entry_points` | `workspacePath` | Mains, route handlers, CLI commands, React roots |
|
|
94
|
+
| `flowmap_find_orphans` | `workspacePath` | Functions unreachable from any entry point |
|
|
95
|
+
| `flowmap_find_cycles` | `workspacePath`, [`minCycleLength`], [`exclude`] | All circular call chains with exact edges |
|
|
96
|
+
| `flowmap_find_duplicates` *(experimental)* | `workspacePath`, [`similarityThreshold`=0.75], [`minCallees`=2], [`exclude`] | Function clusters with similar callee sets |
|
|
101
97
|
|
|
102
98
|
**`workspacePath`** — absolute path to the repo root (e.g. `/home/user/my-project` or `C:\projects\my-app`).
|
|
103
99
|
|
|
@@ -105,17 +101,13 @@ Optional parameters shown in `[brackets]`.
|
|
|
105
101
|
|
|
106
102
|
## Environment Variable Reference
|
|
107
103
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
<tr><td><code>FLOWMAP_DUP_THRESHOLD</code></td><td><code>0.75</code></td><td>Jaccard similarity threshold for <code>find_duplicates</code> (0–1)</td></tr>
|
|
116
|
-
<tr><td><code>FLOWMAP_DUP_MIN_CALLEES</code></td><td><code>2</code></td><td>Min callee count for <code>find_duplicates</code></td></tr>
|
|
117
|
-
</tbody>
|
|
118
|
-
</table>
|
|
104
|
+
| Variable | Default | Description |
|
|
105
|
+
|----------|---------|-------------|
|
|
106
|
+
| `FLOWMAP_TRANSPORT` | `stdio` | `stdio` or `http` |
|
|
107
|
+
| `FLOWMAP_PORT` | `3100` | HTTP port (http transport only) |
|
|
108
|
+
| `FLOWMAP_GRAMMARS` | *(bundled)* | Override path to WASM grammar files |
|
|
109
|
+
| `FLOWMAP_DUP_THRESHOLD` | `0.75` | Jaccard similarity threshold for `find_duplicates` (0–1) |
|
|
110
|
+
| `FLOWMAP_DUP_MIN_CALLEES` | `2` | Min callee count for `find_duplicates` |
|
|
119
111
|
|
|
120
112
|
---
|
|
121
113
|
|