code-pathfinder
by shivasurya·★ 130·综合分 49
Code Pathfinder 的 MCP 服务器,为 AI 助手提供跨文件代码分析和安全扫描功能。
概述
Code Pathfinder 是一个开源的静态分析引擎,能够追踪跨文件和函数的数据流。MCP 服务器提供工具来查询代码图,查找调用者/被调用者,追踪数据流,以及运行安全规则——使这些强大的分析功能在代码审查或开发过程中可供 AI 助手使用。它支持 Python、Docker 和 Docker Compose 分析,拥有 190 多个安全规则,可以自动下载。
试试问 AI
装完之后,这里有 3 个你可以让 AI 做的事:
什么时候选它
当您需要 AI 助手具备超出基本语法检查的深度代码安全分析能力,特别是在复杂应用程序中追踪跨文件数据流时,选择它。
什么时候不要选它
如果您需要支持 Python、Docker 或 Go 以外的语言,或需要具有 SLA 的商业支持,则不要选择它,因为这是一个没有正式支持的开源项目。
此 server 暴露的工具
从 README 抽取出 12 个工具find_callersFind callers of a specific function in the codebase
find_calleesFind functions called by a specific function
trace_dataflowTrace data flow between source and sink points
search_patternsSearch for specific code patterns across the codebase
run_security_ruleRun a specific security rule on the codebase
analyze_projectPerform complete security analysis of the project
get_code_graphRetrieve the call graph representation of the code
query_taint_flowsQuery for tainted data flows across the codebase
list_rulesList available security rules for the codebase
get_function_infoGet detailed information about a specific function
find_vulnerabilitiesFind vulnerabilities based on predefined security rules
get_project_summaryGet a summary of the project structure and analysis
说明:Tool names inferred from the MCP server description which mentions tools for 'querying the code graph: find callers/callees, trace data flows, search for patterns, and run security rules'. The specific tool names were constructed based on t
可对比工具
安装
brew install shivasurya/tap/pathfinder启动 MCP 服务器:
pathfinder serve --project .对于 Claude Desktop,将其添加到您的 configuration.json:
{
"mcpServers": {
"code-pathfinder": {
"command": "pathfinder",
"args": ["serve", "--project", "."]
}
}
}Hacker News 讨论
开发者社区最近的相关讨论。
- 帖子 by shivasurya · 2024-11-23
code-pathfinder 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。