typegraph-mcp 0.9.5 → 0.9.10
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/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/README.md +10 -3
- package/dist/cli.js +5 -1
- package/dist/smoke-test.js +5 -1
- package/package.json +1 -1
- package/smoke-test.ts +6 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typegraph",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Type-aware TypeScript navigation — 14 MCP tools for go-to-definition, find-references, dependency graphs, cycle detection, and impact analysis",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Owen Jones"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typegraph",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Type-aware TypeScript navigation — 14 MCP tools for go-to-definition, find-references, dependency graphs, cycle detection, and impact analysis",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Owen Jones"
|
package/README.md
CHANGED
|
@@ -43,7 +43,14 @@ Agent: ts_trace_chain({ file: "src/handlers.ts", symbol: "createUser" })
|
|
|
43
43
|
|
|
44
44
|
## Quick start
|
|
45
45
|
|
|
46
|
-
### Option A:
|
|
46
|
+
### Option A: npm (recommended)
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
cd /path/to/your-ts-project
|
|
50
|
+
npx typegraph-mcp setup
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Option B: Claude Code plugin
|
|
47
54
|
|
|
48
55
|
```bash
|
|
49
56
|
# Clone and install
|
|
@@ -60,7 +67,7 @@ The plugin auto-configures everything:
|
|
|
60
67
|
- `/typegraph:check` and `/typegraph:test` commands available in-session
|
|
61
68
|
- SessionStart hook verifies dependencies are installed
|
|
62
69
|
|
|
63
|
-
### Option
|
|
70
|
+
### Option C: CLI setup (from source)
|
|
64
71
|
|
|
65
72
|
```bash
|
|
66
73
|
# Clone and install
|
|
@@ -72,7 +79,7 @@ cd /path/to/your-ts-project
|
|
|
72
79
|
npx tsx ~/typegraph-mcp/cli.ts setup
|
|
73
80
|
```
|
|
74
81
|
|
|
75
|
-
The interactive `setup` command:
|
|
82
|
+
The interactive `setup` command (Options A and C):
|
|
76
83
|
1. Auto-detects which AI agents you use (Claude Code, Cursor, Codex CLI, Gemini CLI, GitHub Copilot)
|
|
77
84
|
2. Copies the plugin into `./plugins/typegraph-mcp/` and installs dependencies
|
|
78
85
|
3. Registers the MCP server in each agent's config file (`.mcp.json`, `.cursor/mcp.json`, `.codex/config.toml`, `.vscode/mcp.json`)
|
package/dist/cli.js
CHANGED
|
@@ -1542,7 +1542,11 @@ async function main2(configOverride) {
|
|
|
1542
1542
|
performance.now() - t0
|
|
1543
1543
|
);
|
|
1544
1544
|
t0 = performance.now();
|
|
1545
|
-
|
|
1545
|
+
let info = await client2.quickinfo(testFileRel, span.start.line, span.start.offset);
|
|
1546
|
+
if (!info && defs.length > 0) {
|
|
1547
|
+
const def = defs[0];
|
|
1548
|
+
info = await client2.quickinfo(testFileRel, def.start.line, def.start.offset);
|
|
1549
|
+
}
|
|
1546
1550
|
if (info) {
|
|
1547
1551
|
const typeStr = info.displayString.length > 80 ? info.displayString.slice(0, 80) + "..." : info.displayString;
|
|
1548
1552
|
pass("type_info", typeStr, performance.now() - t0);
|
package/dist/smoke-test.js
CHANGED
|
@@ -1039,7 +1039,11 @@ async function main(configOverride) {
|
|
|
1039
1039
|
performance.now() - t0
|
|
1040
1040
|
);
|
|
1041
1041
|
t0 = performance.now();
|
|
1042
|
-
|
|
1042
|
+
let info = await client.quickinfo(testFileRel, span.start.line, span.start.offset);
|
|
1043
|
+
if (!info && defs.length > 0) {
|
|
1044
|
+
const def = defs[0];
|
|
1045
|
+
info = await client.quickinfo(testFileRel, def.start.line, def.start.offset);
|
|
1046
|
+
}
|
|
1043
1047
|
if (info) {
|
|
1044
1048
|
const typeStr = info.displayString.length > 80 ? info.displayString.slice(0, 80) + "..." : info.displayString;
|
|
1045
1049
|
pass("type_info", typeStr, performance.now() - t0);
|
package/package.json
CHANGED
package/smoke-test.ts
CHANGED
|
@@ -363,7 +363,12 @@ export async function main(configOverride?: TypegraphConfig): Promise<SmokeTestR
|
|
|
363
363
|
|
|
364
364
|
// type_info
|
|
365
365
|
t0 = performance.now();
|
|
366
|
-
|
|
366
|
+
let info = await client.quickinfo(testFileRel, span.start.line, span.start.offset);
|
|
367
|
+
// Span start may point to a keyword (class, function) — retry at the name position
|
|
368
|
+
if (!info && defs.length > 0) {
|
|
369
|
+
const def = defs[0]!;
|
|
370
|
+
info = await client.quickinfo(testFileRel, def.start.line, def.start.offset);
|
|
371
|
+
}
|
|
367
372
|
if (info) {
|
|
368
373
|
const typeStr =
|
|
369
374
|
info.displayString.length > 80
|