MCP Catalogs
首页roam-code screenshot

roam-code

by Cranot·461·综合分 54

本地代码库智能CLI和MCP服务器,分析代码结构、依赖关系和模式,为开发者和AI代理提供实用洞察。

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

概述

Roam-code是一个全面的本地代码库智能解决方案,将仓库解析为SQLite支持的图形,提供28种语言的238个命令和224个MCP工具。它提供代码上下文检索、变更安全分析、算法风险审查和重复/形状检测等功能。该服务器帮助AI代理理解代码库结构,在变更前识别潜在问题,并通过自动分析维护代码质量。

试试问 AI

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

:在提交前分析代码变更以识别潜在问题
:基于自然语言查询检索相关代码片段
:通过自动重构安全检查确保代码质量
:检测可能在测试通过但在大规模部署失败的算法低效问题
:roam-code与其他代码分析工具有何不同?
:roam-code如何确保变更安全性?

什么时候选它

当您在复杂的代码库中使用AI编程助手,需要理解结构关系并确保算法正确性而不仅仅是传统代码审查时,选择roam-code。

什么时候不要选它

如果您只需要一个简单的轻量级代码检查器,或者需要基于云的分析,因为roam-code完全本地运行且没有SaaS产品,请避免使用。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • understand

    Get a full briefing of the codebase

  • context

    Get files to read with exact line ranges for a given symbol

  • retrieve

    Get graph-aware spans for free-form natural language tasks

  • preflight

    Check blast radius + tests + complexity before making changes

  • critique

    Verify a patch for clones not edited and hot paths

  • health

    Get a composite health score (0-100) for the codebase

  • diff

    Show blast radius of uncommitted changes

  • stale-refs

    Find dangling links, hrefs, and broken anchors across the repo

  • math

    Detect code that is correct but computationally expensive

  • smells

    Find code duplication and structural issues

  • pr-analyze

    Analyze pull requests for completeness and correctness

  • impact

    Determine the impact of changing a specific symbol

可对比工具

semgrep-mcpcode-mcpsnyk-mcpgit-mcp

安装

pip install roam-code
cd your-repo/
roam understand

对于Claude Desktop,将其添加到您的config.json中:

{
  "mcpServers": {
    "roam": {
      "command": "roam",
      "args": ["mcp"]
    }
  }
}

FAQ

roam-code与其他代码分析工具有何不同?
Roam-code创建全面的代码库图形,包括符号、依赖关系、调用图、架构层和git历史,提供超越简单模式匹配的结构化上下文。
roam-code如何确保变更安全性?
通过预检查、影响分析、受影响测试识别和差异批评功能,帮助理解代码变更会影响哪些部分。

roam-code 对比

GitHub →

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