trace-mcp 1.8.0 → 1.10.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 +21 -14
- package/dist/cli.js +17604 -12723
- package/dist/cli.js.map +1 -1
- package/dist/index.js +8927 -8419
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ Tools that persist context across AI agent sessions — activity logs, knowledge
|
|
|
67
67
|
| Code-graph-aware memory | ✅ tied to symbols & deps | ❌ text-only | ❌ text-only | ❌ text-only | ❌ text-only | ❌ text-only |
|
|
68
68
|
| Token usage analytics | ✅ per-tool cost breakdown | partial | ❌ | ❌ | ❌ | ❌ |
|
|
69
69
|
| Optimization recommendations | ✅ waste detection, A/B savings | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
70
|
-
| Code intelligence included | ✅
|
|
70
|
+
| Code intelligence included | ✅ 120+ tools | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
71
71
|
| Knowledge graph | ✅ code dependency graph | ❌ | ✅ temporal | ❌ | ✅ project-level | ❌ |
|
|
72
72
|
| Works as standalone memory | ❌ code-focused | ❌ Claude-specific | ✅ agent-agnostic | ✅ agent-agnostic | ✅ project-scoped | ✅ general-purpose |
|
|
73
73
|
| Written in | TypeScript | TypeScript | TS + Python | Go | Python | TypeScript |
|
|
@@ -102,7 +102,7 @@ _¹ mcp-local-rag and knowledge-rag are document RAG tools (PDF, DOCX, Markdown)
|
|
|
102
102
|
| Languages | 68 | ~10 | 66 | ~15 | 32 | ~10 |
|
|
103
103
|
| Framework integrations | 53 (14 fw + 7 ORM + 12 UI + 20 other) | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
104
104
|
| Cross-language edges | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
105
|
-
| MCP tools |
|
|
105
|
+
| MCP tools | 120+ | ~15 | ~20 | ~25 | 90 | 139 |
|
|
106
106
|
| Session memory | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
|
|
107
107
|
| CI/PR reports | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
|
|
108
108
|
| Multi-repo federation | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
@@ -120,31 +120,36 @@ _¹ mcp-local-rag and knowledge-rag are document RAG tools (PDF, DOCX, Markdown)
|
|
|
120
120
|
|
|
121
121
|
AI agents burn tokens reading files they don't need. trace-mcp returns **precision context** — only the symbols, edges, and signatures relevant to the query.
|
|
122
122
|
|
|
123
|
-
**Benchmark: trace-mcp's own codebase** (
|
|
123
|
+
**Benchmark: trace-mcp's own codebase** (653 files, 3,493 symbols):
|
|
124
124
|
|
|
125
125
|
```
|
|
126
126
|
Task Without trace-mcp With trace-mcp Reduction
|
|
127
127
|
─────────────────────────────────────────────────────────────────────
|
|
128
|
-
Symbol lookup
|
|
129
|
-
File exploration
|
|
128
|
+
Symbol lookup 42,518 tokens 7,353 tokens 82.7%
|
|
129
|
+
File exploration 27,486 tokens 548 tokens 98.0%
|
|
130
130
|
Search 22,860 tokens 8,000 tokens 65.0%
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
Find usages 11,430 tokens 1,720 tokens 85.0%
|
|
132
|
+
Context bundle 12,847 tokens 4,164 tokens 67.6%
|
|
133
|
+
Batch overhead 16,831 tokens 9,031 tokens 46.3%
|
|
134
|
+
Impact analysis 49,141 tokens 2,461 tokens 95.0%
|
|
135
|
+
Call graph 178,345 tokens 10,704 tokens 94.0%
|
|
136
|
+
Type hierarchy 94,762 tokens 1,030 tokens 98.9%
|
|
137
|
+
Tests for 22,590 tokens 1,150 tokens 94.9%
|
|
138
|
+
Composite task 93,634 tokens 3,836 tokens 95.9%
|
|
134
139
|
─────────────────────────────────────────────────────────────────────
|
|
135
|
-
Total
|
|
140
|
+
Total 572,444 tokens 49,997 tokens 91.3%
|
|
136
141
|
```
|
|
137
142
|
|
|
138
|
-
**
|
|
143
|
+
**91% fewer tokens** to accomplish the same code understanding tasks. That's ~522K tokens saved per exploration session — more headroom for actual coding, fewer context window evictions, lower API costs.
|
|
139
144
|
|
|
140
|
-
**Savings scale with project size.** On a 650-file project, trace-mcp saves ~
|
|
145
|
+
**Savings scale with project size.** On a 650-file project, trace-mcp saves ~522K tokens. On a 5,000-file enterprise codebase, savings grow **non-linearly** — without trace-mcp, the agent reads more wrong files before finding the right one. With trace-mcp, graph traversal stays O(relevant edges), not O(total files).
|
|
141
146
|
|
|
142
147
|
**Composite tasks deliver the biggest wins.** A single `get_task_context` call replaces a chain of ~10 sequential operations (search → get_symbol × 5 → Read × 3 → Grep × 2). That's **one round-trip instead of ten**, with 90%+ token reduction.
|
|
143
148
|
|
|
144
149
|
<details>
|
|
145
150
|
<summary>Methodology</summary>
|
|
146
151
|
|
|
147
|
-
Measured using `benchmark_project` — runs
|
|
152
|
+
Measured using `benchmark_project` — runs eleven real task categories (symbol lookup, file exploration, text search, find usages, context bundle, batch overhead, impact analysis, call graph traversal, type hierarchy, tests-for, composite task context) against the indexed project. "Without trace-mcp" = estimated tokens from equivalent Read/Grep/Glob operations (full file reads, grep output). "With trace-mcp" = actual tokens returned by trace-mcp tools (targeted symbols, outlines, graph results). Token counts estimated using trace-mcp's built-in savings tracker.
|
|
148
153
|
|
|
149
154
|
Reproduce it yourself:
|
|
150
155
|
```
|
|
@@ -390,7 +395,7 @@ Source files (PHP, TS, Vue, Python, Go, Java, Kotlin, Ruby, HTML, CSS, Blade)
|
|
|
390
395
|
│
|
|
391
396
|
▼
|
|
392
397
|
MCP server (stdio or HTTP/SSE)
|
|
393
|
-
|
|
398
|
+
120+ tools · 2 resources
|
|
394
399
|
```
|
|
395
400
|
|
|
396
401
|
**Incremental by default** — files are content-hashed; unchanged files are skipped on re-index.
|
|
@@ -406,9 +411,11 @@ Source files (PHP, TS, Vue, Python, Go, Java, Kotlin, Ruby, HTML, CSS, Blade)
|
|
|
406
411
|
| Document | Description |
|
|
407
412
|
|---|---|
|
|
408
413
|
| [Supported frameworks](docs/supported-frameworks.md) | Complete list of languages, frameworks, ORMs, UI libraries, and what each extracts |
|
|
409
|
-
| [Tools reference](docs/tools-reference.md) | All
|
|
414
|
+
| [Tools reference](docs/tools-reference.md) | All 120+ MCP tools with descriptions and usage examples |
|
|
410
415
|
| [Configuration](docs/configuration.md) | Config options, AI setup, environment variables, security settings |
|
|
411
416
|
| [Architecture](docs/architecture.md) | How indexing works, plugin system, project structure, tech stack |
|
|
417
|
+
| [Analytics](docs/analytics.md) | Session analytics, token savings tracking, optimization reports, benchmarks |
|
|
418
|
+
| [System prompt routing](docs/tweakcc.md) | Optional tweakcc integration for maximum tool routing enforcement |
|
|
412
419
|
| [Development](docs/development.md) | Building, testing, contributing, adding new plugins |
|
|
413
420
|
|
|
414
421
|
---
|