callgraph-mcp 1.0.3 → 1.1.0
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 +4 -193
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,29 +8,8 @@ Powered by [`@codeflow-map/core`](https://www.npmjs.com/package/@codeflow-map/co
|
|
|
8
8
|
|
|
9
9
|
**Supports:** TypeScript · JavaScript · TSX · JSX · Python · Go
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
> **Bundled grammars:** TypeScript, JavaScript, TSX, JSX, Python, and Go grammars are included. After install, they are available in `callgraph-mcp/grammars`.
|
|
12
12
|
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Quick Start (VS Code Copilot)
|
|
16
|
-
|
|
17
|
-
Add this to `.vscode/mcp.json`:
|
|
18
|
-
|
|
19
|
-
```json
|
|
20
|
-
{
|
|
21
|
-
"servers": {
|
|
22
|
-
"flowmap": {
|
|
23
|
-
"type": "stdio",
|
|
24
|
-
"command": "npx",
|
|
25
|
-
"args": ["-y", "callgraph-mcp"]
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
VS Code starts and stops the server automatically.
|
|
32
|
-
|
|
33
|
-
---
|
|
34
13
|
|
|
35
14
|
## Setup
|
|
36
15
|
|
|
@@ -53,85 +32,11 @@ Add to your project's `.vscode/mcp.json`:
|
|
|
53
32
|
}
|
|
54
33
|
```
|
|
55
34
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
> **Tip:** Create `.vscode/mcp.json` via the Command Palette → **MCP: Add Server** → **stdio**.
|
|
59
|
-
|
|
60
|
-
### Option 2 — Global install
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
npm install -g callgraph-mcp
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
```json
|
|
67
|
-
{
|
|
68
|
-
"servers": {
|
|
69
|
-
"flowmap": {
|
|
70
|
-
"type": "stdio",
|
|
71
|
-
"command": "callgraph-mcp",
|
|
72
|
-
"env": {
|
|
73
|
-
"FLOWMAP_TRANSPORT": "stdio"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Option 3 — Claude Desktop
|
|
81
|
-
|
|
82
|
-
Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
83
|
-
|
|
84
|
-
```json
|
|
85
|
-
{
|
|
86
|
-
"mcpServers": {
|
|
87
|
-
"flowmap": {
|
|
88
|
-
"command": "npx",
|
|
89
|
-
"args": ["-y", "callgraph-mcp"],
|
|
90
|
-
"env": {
|
|
91
|
-
"FLOWMAP_TRANSPORT": "stdio"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### Option 4 — Cursor
|
|
99
|
-
|
|
100
|
-
Add to your project's `.cursor/mcp.json`:
|
|
35
|
+
Start the server in your editor. WASM grammars are bundled — no environment variables needed.
|
|
101
36
|
|
|
102
|
-
|
|
103
|
-
{
|
|
104
|
-
"mcpServers": {
|
|
105
|
-
"flowmap": {
|
|
106
|
-
"command": "npx",
|
|
107
|
-
"args": ["-y", "callgraph-mcp"],
|
|
108
|
-
"env": {
|
|
109
|
-
"FLOWMAP_TRANSPORT": "stdio"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
### Option 5 — Cline
|
|
117
|
-
|
|
118
|
-
Add to your Cline MCP settings (commonly `cline_mcp_settings.json`):
|
|
119
|
-
|
|
120
|
-
```json
|
|
121
|
-
{
|
|
122
|
-
"mcpServers": {
|
|
123
|
-
"flowmap": {
|
|
124
|
-
"command": "npx",
|
|
125
|
-
"args": ["-y", "callgraph-mcp"],
|
|
126
|
-
"env": {
|
|
127
|
-
"FLOWMAP_TRANSPORT": "stdio"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
```
|
|
37
|
+
> **Tip:** Create `.vscode/mcp.json` via the Command Palette -> **MCP: Add Server** -> **stdio**.
|
|
133
38
|
|
|
134
|
-
### Option
|
|
39
|
+
### Option 2 — HTTP-SSE (shared or remote server)
|
|
135
40
|
|
|
136
41
|
Use `FLOWMAP_TRANSPORT=http` for HTTP-SSE compatible clients.
|
|
137
42
|
|
|
@@ -156,100 +61,6 @@ Then point your client at it:
|
|
|
156
61
|
}
|
|
157
62
|
```
|
|
158
63
|
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
## Configure Environment Variables
|
|
162
|
-
|
|
163
|
-
Use one of the following approaches depending on your client.
|
|
164
|
-
|
|
165
|
-
### In VS Code `.vscode/mcp.json`
|
|
166
|
-
|
|
167
|
-
```json
|
|
168
|
-
{
|
|
169
|
-
"servers": {
|
|
170
|
-
"flowmap": {
|
|
171
|
-
"type": "stdio",
|
|
172
|
-
"command": "npx",
|
|
173
|
-
"args": ["-y", "callgraph-mcp"],
|
|
174
|
-
"env": {
|
|
175
|
-
"FLOWMAP_TRANSPORT": "http",
|
|
176
|
-
"FLOWMAP_PORT": "3100",
|
|
177
|
-
"FLOWMAP_GRAMMARS": "/absolute/path/to/grammars"
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### In Claude Desktop config
|
|
185
|
-
|
|
186
|
-
```json
|
|
187
|
-
{
|
|
188
|
-
"mcpServers": {
|
|
189
|
-
"flowmap": {
|
|
190
|
-
"command": "npx",
|
|
191
|
-
"args": ["-y", "callgraph-mcp"],
|
|
192
|
-
"env": {
|
|
193
|
-
"FLOWMAP_TRANSPORT": "stdio",
|
|
194
|
-
"FLOWMAP_GRAMMARS": "/absolute/path/to/grammars"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### In Cursor `.cursor/mcp.json`
|
|
202
|
-
|
|
203
|
-
```json
|
|
204
|
-
{
|
|
205
|
-
"mcpServers": {
|
|
206
|
-
"flowmap": {
|
|
207
|
-
"command": "npx",
|
|
208
|
-
"args": ["-y", "callgraph-mcp"],
|
|
209
|
-
"env": {
|
|
210
|
-
"FLOWMAP_TRANSPORT": "stdio",
|
|
211
|
-
"FLOWMAP_GRAMMARS": "/absolute/path/to/grammars"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
### In Cline MCP settings
|
|
219
|
-
|
|
220
|
-
```json
|
|
221
|
-
{
|
|
222
|
-
"mcpServers": {
|
|
223
|
-
"flowmap": {
|
|
224
|
-
"command": "npx",
|
|
225
|
-
"args": ["-y", "callgraph-mcp"],
|
|
226
|
-
"env": {
|
|
227
|
-
"FLOWMAP_TRANSPORT": "stdio",
|
|
228
|
-
"FLOWMAP_GRAMMARS": "/absolute/path/to/grammars"
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
### In your shell for one-off runs
|
|
236
|
-
|
|
237
|
-
macOS / Linux:
|
|
238
|
-
|
|
239
|
-
```bash
|
|
240
|
-
FLOWMAP_TRANSPORT=http FLOWMAP_PORT=3100 npx callgraph-mcp
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
Windows PowerShell:
|
|
244
|
-
|
|
245
|
-
```powershell
|
|
246
|
-
$env:FLOWMAP_TRANSPORT="http"
|
|
247
|
-
$env:FLOWMAP_PORT="3100"
|
|
248
|
-
npx callgraph-mcp
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
---
|
|
252
|
-
|
|
253
64
|
## Tools Reference
|
|
254
65
|
|
|
255
66
|
| Tool | Required params | Optional | What it returns |
|