MCP Catalogs
首页

memtrace-public

by syncable-dev·169·综合分 50

Memtrace 通过 MCP 为 AI 编码代理提供结构化内存,将代码库索引为双时态知识图谱,无需 LLM 调用。

developer-toolsknowledge-graphai-llm
12
Forks
1
活跃 Issue
本月
最近提交
2 天前
收录于

概述

Memtrace 将代码库转化为实时知识图谱,使 AI 编码代理能够在毫秒级时间内进行查询。它维护每个会话中的函数、类、调用边和版本的结构化记忆,使代理能够导航复杂的代码库,而无需重新读取文件或破坏不可见的依赖。该系统使用 Tree-sitter AST 解析在本地构建确定性符号关系,避免昂贵的 LLM 推理,同时保持代码分析的高准确性。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:多代理代码协作,共享代码结构理解
:大规模代码库中变更的影响分析
:随时间跟踪代码模式和依赖的演变
:Memtrace 与传统代码搜索工具有何不同?
:Memtrace 支持哪些编程语言?

什么时候选它

当处理复杂代码库,多个AI编程代理需要共享具有时间感知和影响分析能力的结构化内存时,选择Memtrace。

什么时候不要选它

如果你需要开源许可(这是专有EULA),超出生成的代码记忆的对话能力,或者已经深度投入到Mem0或Graphiti等替代记忆系统中,不要选择Memtrace。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • find_code

    Hybrid search using BM25 + semantic + RRF to find code in the repository

  • find_symbol

    Exact or fuzzy search for symbols (functions, classes, etc.) with Levenshtein support

  • analyze_relationships

    Analyze relationships between symbols including callers, callees, hierarchy, and imports

  • get_symbol_context

    Get a 360-degree view of a symbol with all its relationships and dependencies

  • get_impact

    Analyze the impact of changing a symbol with risk rating

  • detect_changes

    Map code changes to affected symbols using diff-based analysis

  • find_dead_code

    Detect code that has no callers and is potentially unused

  • find_most_complex_functions

    Identify functions with the highest cyclomatic complexity

  • get_evolution

    Analyze how symbols have evolved over time using 6 different scoring modes

  • get_timeline

    Get the full version history of a symbol

  • find_bridge_symbols

    Find symbols with high betweenness centrality that connect different parts of the graph

  • list_communities

    Identify architectural modules using the Louvain community detection algorithm

可对比工具

mem0graphitigitnexus

安装

安装步骤

  1. 在 [memtrace.io](https://memtrace.io) 获取私有测试版访问权限
  2. 全局安装:npm install -g memtrace
  3. 对于 Claude Desktop,将其添加到您的 Claude Desktop 配置中:
{
  "mcpServers": {
    "memtrace": {
      "command": "memtrace",
      "args": ["serve"]
    }
  }
}

初始化

索引项目:memtrace index <目录>

编辑器集成

  • **Claude Code & Cursor**:安装后自动配置
  • **VS Code & Windsurf**:需要安装扩展

FAQ

Memtrace 与传统代码搜索工具有何不同?
Memtrace 创建双时态知识图谱,维护代码元素随时间推移的历史上下文和关系,而传统搜索工具仅提供当前状态。
Memtrace 支持哪些编程语言?
Memtrace 通过 Tree-sitter 解析器支持 20+ 种编程语言,包括主流语言如 Python、JavaScript、Java、C++,以及具有专用扫描器的特定语言。

memtrace-public 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。