OV

oleg-vysotsky/trace-mcp-test

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2 stars 23 forks 质量 55 趋势 4NOASSERTION

您的人工智能代理读取 Usercop.php 并看到一个类。 微量Mcp读取并看到一条路由 控制器 表格请求 语言模式 opertion model – Inertia 渲染 – Vue page – 儿童组件 –

概览

您的人工智能代理读取 Usercop.php 并看到一个类。 微量Mcp读取并看到一条路由 控制器 表格请求 语言模式 opertion model – Inertia 渲染 – Vue page – 儿童组件 – AI编码代理是语言意识, 他们不知道Inertia::render('Users/show',$data)将Laravel控制器连接到资源/js/Pages/Users/show.vue. 他们不知道$user - > posts() 意味着邮递表之前定义了三次迁移. 他们无法从 URL 追踪一个请求到生成像素. 因此,他们粗鲁地阅读文件, 猜测关系, 完全错过了跨语言边缘。 项目越大,情况就越糟糕. Track-mcp从您的源代码中构建出一个并透过"模式上下文协议"将其曝光. 任何MCP相容的代理(Claude Code, Cursor, Windsurf等)都会从框中获取框架级的理解. AI特工会烧掉他们不需要的读取文件的活物. track-mcp返回——只有与查询相关的符号,边缘和签名.

概述(AI 翻译)

** 框架-意识代码智能MCP服务器——48+框架集成,使用68种语言。 **

您的AI 代理读取 [ [T0] 并看到一个类 。 track-mcp读取并看到一条路由 控制器 Form request 口号模型 Inertia 渲染 Vue页 儿童组件 **在一个图中. **

– – . . .

□ 问题

AI编码代理具有语言意识,但框架-盲.

他们不知道Inertia::render('Users/Show', $data)将Laravel控制器连接到[T2]. 他们不知道$user->posts()是指[T4]表定义了前三次迁移. 他们无法从 URL 追踪一个请求到生成像素.

因此,他们粗鲁地阅读文件, 猜测关系, 完全错过了跨语言边缘。 项目越大,情况就越糟糕.

□ 解决方案

track-mcp从您的源代码中构建出跨语言依赖图,并通过"模式上下文协议"将其曝光. 任何MCP相容的代理(Claude Code, Cursor, Windsurf等)都会从框中获取框架级的理解.

{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}没有微量微量微量微量微量微分 |-|-|-

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

trace-mcp

Framework-aware code intelligence MCP server — 48+ framework integrations across 68 languages.

Your AI agent reads UserController.php and sees a class. trace-mcp reads it and sees a route → controller → FormRequest → Eloquent model → Inertia render → Vue page → child components — in one graph.


The problem

AI coding agents are language-aware but framework-blind.

They don’t know that Inertia::render('Users/Show', $data) connects a Laravel controller to resources/js/Pages/Users/Show.vue. They don’t know that $user->posts() means the posts table defined three migrations ago. They can’t trace a request from URL to rendered pixel.

So they brute-read files, guess at relationships, and miss cross-language edges entirely. The bigger the project, the worse it gets.

The solution

trace-mcp builds a cross-language dependency graph from your source code and exposes it through the Model Context Protocol. Any MCP-compatible agent (Claude Code, Cursor, Windsurf, etc.) gets framework-level understanding out of the box.

Without trace-mcp With trace-mcp
Agent reads 15 files to understand a feature get_task_context — optimal code subgraph in one shot
Agent doesn’t know which Vue page a controller renders routes_to → renders_component → uses_prop edges
“What breaks if I change this model?” — agent guesses get_change_impact traverses reverse dependencies across languages
Schema? Agent needs a running database Migrations parsed — schema reconstructed from code
Prop mismatch between PHP and Vue? Discovered in production Detected at index time — PHP data vs. defineProps

Token efficiency — real-world benchmark

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.

Benchmark: trace-mcp’s own codebase (563 files, 2,955 symbols):

Task                  Without trace-mcp    With trace-mcp    Reduction
─────────────────────────────────────────────────────────────────────
Symbol lookup              49,719 tokens     5,103 tokens      89.7%
File exploration           11,284 tokens       463 tokens      95.9%
Search                     22,860 tokens     8,000 tokens      65.0%
Impact analysis            69,223 tokens     3,464 tokens      95.0%
Call graph                107,497 tokens     6,452 tokens      94.0%
─────────────────────────────────────────────────────────────────────
Total                     260,583 tokens    23,482 tokens      91.0%

91% fewer tokens to accomplish the same code understanding tasks. That’s ~237K tokens saved per exploration session — more headroom for actual coding, fewer context window evictions, lower API costs.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →