SCAST is a programmatic tool designed to convert code into UML diagrams and flowcharts. It leverages static code analysis to generate visual representations of code structures, making it easier for developers to understand and explain their code. The tool supports multiple programming languages, including JavaScript, TypeScript, C#, and Python, with plans to add support for Vue in the future.
scast_analysis
SCAST performs static analysis on code, generating an AST tree to help users understand the code structure and explain its functionality. It produces various visual charts, including UML diagrams, AST tree diagrams, and Mermaid flowcharts. The tool also returns a keyword list containing all class and method names along with their functionality explanations.
scast_retriever
This tool helps users analyze and summarize code by providing visualizations. It performs static analysis on the source code folder, generating an AST tree to explain the code structure. Users can search the AST tree using keywords (class names, method names, or field names) to retrieve relevant source code.
To configure SCAST as an MCP server:
bash
git clone https://github.com/davidkingzyb/SCAST.git
bash
npm install
json
{
"mcpServers": {
"scast": {
"command": "node",
"args": [
"/YOUR_INSTALL_DIR/SCAST/mcp/index.js",
"/YOUR_WORKSPACE/",
"C:\\Users\\DKZ\\OTHER_ALLOWED_DIR\\"
]
}
}
}
You can try SCAST online by visiting SCAST.html or download the repository and open SCAST.html
in your browser. For developers, SCAST can be deployed on servers using npm run server
.
SCAST generates various types of visualizations, including:
SCAST integrates with Ollama AI to provide code explanations. Install Ollama and refer to ai.js for more details.
SCAST is licensed under the MIT License.