Skip to main content
Glama

SCAST MCP Server

🔱SCAST

静态代码分析和可视化

2024年9月27日 DKZ

English/中文

🔱SCAST是一种将代码转换为 UML 图和流程图的编程工具。

📽️观看视频
📽️教程
📽️MCP

支持计划

  • javascript(使用acorn
  • typescript(现在使用typescript进行estree稍后)
  • csharp(使用将来不再支持的自定义解析器)
  • python(使用自定义解析器,稍后使用filbert
  • vue(稍后)

其基本原理是利用解析器将代码解析为抽象语法树(AST),然后进行静态分析,最后利用MermaidD3进行可视化。

您可以在线尝试,或者直接下载此 repo 并使用浏览器打开 SCAST.html。
对于开发人员,可以使用npm run server将其部署到服务器上。或者将其用作MCP服务器并将其集成到您的 AI 客户端中。

scast\_uml

更新

微胶囊钙

甲基氯丙烯

  1. git clone https://github.com/davidkingzyb/SCAST.git下载源代码。
  2. npm install
  3. 在您的客户端配置
{ "mcpServers": { "scast":{ "command":"node", "args":[ "/YOUR_INSTALL_DIR/SCAST/mcp/index.js", "/YOUR_WORKSPACE/", "C:\\Users\\DKZ\\OTHER_ALLOWED_DIR\\", ] } } }
工具
scast_分析:

SCAST 是一款旨在通过可视化方式帮助用户分析和总结代码的工具。只需提供代码所在的文件夹路径,SCAST 即可对代码进行静态分析,生成 AST 树,帮助用户理解代码结构并解释其功能。此外,它还能生成各种可视化图表,例如 UML 图、AST 树图和 Mermaid 流程图。最终返回一个包含所有类和方法名称及其功能说明的关键字列表,并包含一个链接,方便用户在浏览器中查看图表详情。

scast_retriever

SCAST 是一款帮助用户分析和总结代码并提供可视化效果的工具。您需要提供源代码文件夹的文件路径。SCAST 将对文件夹中的源代码进行静态分析,生成抽象语法树 (AST Tree),帮助用户理解代码结构并解释其功能。使用 SCAST 分析代码目录后,您可以使用 AST 树中的关键字进行搜索,从而更好地使用 RAG 方法解答用户的问题。关键字可以是类名、方法名或字段名。SCAST 将在源代码的定义处找到并返回。

奥拉玛人工智能

首先安装ollama,查看ai.js了解更多详细信息

奥拉马

ES树

符合 ESTree 规范的 AST 解析器

力导向图

自由民主党

更多 D3 Graph
  • 锯齿状的树
  • 整洁的树
  • 聚类树
  • Tadial 整洁树
  • 径向聚类树
  • 力导向树
  • 边缘捆绑

scast\_d3

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

通过静态分析将代码转换为UML图和流程图,实现代码结构的可视化和功能的解释。

  1. 更新
    1. 微胶囊钙

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    Provides tools for collecting and documenting code from directories.
    Last updated -
    4
    81
    12
    TypeScript
    MIT License
    • Apple
    • Linux
  • A
    security
    F
    license
    A
    quality
    Enables users to create UI flowcharts by generating visualizations of user interfaces and interactions through an easy-to-use API within MCP-compatible systems.
    Last updated -
    1
    7
    5
    TypeScript
  • -
    security
    A
    license
    -
    quality
    Provides deep source code analysis for Unreal Engine codebases, allowing AI assistants to understand C++ class structures, search code, and analyze subsystems.
    Last updated -
    71
    TypeScript
    MIT License
  • -
    security
    F
    license
    -
    quality
    Analyzes codebases to generate dependency graphs and architectural insights across multiple programming languages, helping developers understand code structure and validate against architectural rules.
    Last updated -
    5
    JavaScript

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidkingzyb/SCAST'

If you have feedback or need assistance with the MCP directory API, please join our Discord server