Token导航 LogoToken导航TokenDH.com
SEP MCP logo
浏览器工具stdio官方级别未说明来源级核验

SEP MCP

MCP Server

Manifold Engine MCP Server 是一个高性能代码结构分析引擎,提供代码库的结构化索引、混乱检测、依赖风险分析和实时同步功能,适用于代码质量评估和重构决策。

工具数

21

提示词数

0

GitHub Stars

0

资源数

0
代码分析HTMLClaudeClaude DesktopClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

SepDynamics

提供方

SepDynamics

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -e .

详细介绍

歧管发动机MCP服务器

一个模型上下文协议服务器,为AI编码助手提供高速、结构化的代码库分析和动态上下文管理。它不是逐个读取代码令牌,而是映射存储库 *结构上* --将源文件视为连续的字节流,计算结构签名,并在O(1)时间内检测架构混乱。

当前状态:所有阶段0的关键错误都已解决,包括FAISS语义搜索反序列化, ingest_repo 相对路径解析、组合风险公式透明度和不同的集群命名启发式。所有21个分析工具功能齐全。

______________________________________________________________________

核心能力

能力描述
结构索引将每个文件扫描到Valkey支持的网格中,其中包含压缩签名和混沌配置文件。亚毫秒级检索。
混沌检测计算a chaos_score 每个文件。预测哪些文件将无法维护。
依赖性和风险分析通过AST解析跟踪导入图,测量爆炸半径,将混沌×爆炸组合成一个风险评分。
工作记忆将持久性事实(项目约定、体系结构规则)注入到动态语义代码簿中,用于零样本学习。
实时同步文件系统监视器在毫秒内自动接收文件保存,使索引保持最新状态,而无需手动重新扫描。

______________________________________________________________________

安装

先决条件

  • Python 3.10+
  • Valkey(或Redis)正在运行 localhost:6379
  • C++20编译器(用于构建本机结构引擎)
  • faiss-cpu (运行 cluster_codebase_structure 工具)

设置

# 1. Start the Valkey backend
valkey-server

# 2. Install the manifold engine
pip install -e .

# 3. Configure your MCP client (Kilo Code, Claude Desktop, Cursor, etc.)

添加到MCP客户端配置中:

{
  "mcpServers": {
    "manifold": {
      "command": "path/to/virtualenv/bin/python",
      "args": ["path/to/SEP-mcp/mcp_server.py"],
      "cwd": "path/to/SEP-mcp"
    }
  }
}

______________________________________________________________________

常见工作流和用例

1.新存储库分析

在输入新代码库时,执行初始映射以立即了解技术债务分布。

# 1. Index the repository
ingest_repo  (root_dir=".", clear_first=true, compute_chaos=true)

# 2. Verify ingestion was successful
get_index_stats

# 3. Quickly identify the most complex, chaotic files
batch_chaos_scan  (pattern="*.py", max_files=30)

2.重构决策和Sprint计划

使用结构风险度量来客观地决定重写什么代码。

# 1. Scan for files with BOTH high complexity and high import dependencies
scan_critical_files       (pattern="*.py", max_files=10)

# 2. For candidates, predict how soon the file will become unmaintainable
predict_structural_ejection (path="target.py", horizon_days=30)

# 3. For visual confirmation, generate a 4-panel chaos dashboard
visualize_manifold_trajectory (path="target.py")

3.寻找实施模式

与其按文本搜索,不如按结构签名搜索,以找到类似的逻辑块或克隆。

# 1. Get the mathematical signature of an existing file
get_file_signature  (path="found_file.py")

# 2. Search for any other files that match this structure globally
search_by_structure (signature="c0.213_s0.000_e0.928", tolerance=0.05)

4.连续流动

# Run the watcher inside the repo
start_watcher  (watch_dir=".")

# The engine now automatically syncs and re-evaluates risk natively whenever files are saved.

______________________________________________________________________

工具参考(20个工具)

所有工具都记录了参数、示例和工作流程 MCP_TOOL_GUIDE.md.

索引和监控

工具目的快速命令
ingest_repo使用签名和混乱配置文件对Valkey进行完整存储库扫描ingest_repo root_dir="." clear_first=true compute_chaos=true
get_index_stats实时索引运行状况:文档计数、内存、混乱平均值get_index_stats
start_watcher后台文件系统观察器——在文件保存/删除时自动识别start_watcher watch_dir="."

文件发现和搜索

工具目的快速命令
list_indexed_files按glob模式浏览索引文件list_indexed_files pattern="*.py" max_results=200
get_file从Valkey索引读取完整文件内容get_file path="src/manifold/sidecar.py"
search_code使用上下文在所有索引文件中搜索关键字或正则表达式search_code query="chaos_score" file_pattern="*.py"
get_file_signature文件的结构指纹(c/s/e)get_file_signature path="mcp_server.py"
search_by_structure查找具有相似结构签名的文件search_by_structure signature="c0.213_s0.000_e0.928" tolerance=0.05
search_by_signature_sequence查找包含连续签名序列的文件search_by_signature_sequence text="..." min_signatures=3

混沌分析

工具目的快速命令
analyze_code_chaos每个文件的混乱评分、熵、一致性、崩溃风险analyze_code_chaos path="mcp_server.py"
batch_chaos_scan按混乱评分对所有文件进行排名(风险最高者优先)batch_chaos_scan pattern="*.py" max_files=50
predict_structural_ejection预测文件何时变得无法维护predict_structural_ejection path="mcp_server.py" horizon_days=30
visualize_manifold_trajectory生成一个包含4个面板的混沌动力学仪表板visualize_manifold_trajectory path="mcp_server.py"
cluster_codebase_structureK-Means通过结构签名对文件进行聚类cluster_codebase_structure pattern="*.py" n_clusters=5

依赖性和组合风险

工具目的快速命令
analyze_blast_radius导入依赖关系树和影响文件计数analyze_blast_radius path="src/manifold/sidecar.py"
compute_combined_risk综合风险=0.6×混乱+0.4×爆炸compute_combined_risk path="src/manifold/sidecar.py"
scan_critical_files全存储库扫描,以获得最高的综合风险scan_critical_files pattern="*.py" max_files=20

验证和记忆

工具目的快速命令
compute_signature将任意文本压缩为流形签名compute_signature text="def hello(): ..."
verify_snippet检查代码在结构上是否与现有代码库模式匹配verify_snippet snippet="..." coverage_threshold=0.5 scope="*.py"
inject_fact为动态语义代码簿添加持久性知识inject_fact fact_id="api_rules" fact_text="All endpoints use snake_case."
remove_fact删除之前注入的事实remove_fact fact_id="api_rules"

______________________________________________________________________

实证验证

React 15.0案例研究

结构引擎标记了确切的文件(ReactReconcileTransaction.js, ReactInstanceHandles.js)React核心团队随后删除并重写为React Fiber——对JavaScript没有任何语义理解。 → 阅读研究

Langchain ROC分析

盲前向预测研究 langchain v0.0.300 证明了混沌分数阈值 0.396 最佳地预测架构弹出,在O(1)速度下达到昂贵AST解析工具预测能力的91%左右。 → 阅读研究

内存优化

Zstandard压缩将cpython索引从 3.4 GB到28 MB (减少>99%),检索精度零损失。

______________________________________________________________________

文档

文件目的
MCP_TOOL_GUIDE.md全面的工具参考、工作流程、最佳实践
报告/验证研究和生成的报告

______________________________________________________________________

许可证

麻省理工学院——见 许可证

目录标签

目录标签

代码分析HTMLClaude本地部署结构索引风险预测实时同步AI辅助编程

支持客户端

Claude DesktopClaudeCursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

21

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP