scast_analysisLABSCO SUMMARY
Analysis and retrieval in one pass: the diagram gives you the shape, the keyword list gives the agent an index.
scast_analysis returns names with explanations rather than just pictures, which is what makes scast_retriever work afterwards — the assistant picks a name it saw and pulls the definition, instead of grepping. Access is bounded by the directories you list on the command line.
What it is
A static analysis server: it parses a source folder into an AST with TreeSitter, renders diagrams with Mermaid and D3, and lets you retrieve definitions by keyword.
What you get
- scast_analysis takes a folder path and returns a keyword list of every class and method with an explanation, plus a link to view the UML, AST and Mermaid diagrams in a browser
- scast_retriever looks up a class, method or field name from the AST and returns the source at its definition
- C#, JavaScript, Python, TypeScript, C and C++ out of the box, with TreeSitter available for other languages
- The same engine runs as a standalone page you can open in a browser, or as a server
Requirements
Node.js and a clone: git clone, npm install, then register mcp/index.js with your client. The launch arguments are the directories SCAST is allowed to read — your workspace path, plus any other directory you want to permit. No account, no key.
Setup effort
Build from source — git clone https://github.com/davidkingzyb/SCAST.git
USE CASES
Understanding a codebase you just cloned
Point it at the folder and get UML and flowcharts plus a named list of every class and method.
Answering a question about code with the real source
Search the AST by class, method or field name and pull the definition rather than a guess.
Explaining a module to someone else
Generate the diagrams and open the link in a browser to walk through the structure.
Working across languages in one repo
The same parser handles C#, JavaScript, Python, TypeScript, C and C++ without a separate tool per language.
2 tools
Listed in project docs. Your client may show a different list.
scast_retrieverBEFORE YOU INSTALL
What to know first
Tools you get
2 tools named in the project's documentation.
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
git clone https://github.com/davidkingzyb/SCAST.git
cd SCAST
npm installMCP Clients
Any MCP client
{
"mcpServers": {
"scast": {
"command": "node",
"args": [
"/<YOUR_INSTALL_DIR>/SCAST/mcp/index.js",
"/<YOUR_WORKSPACE>/",
"C:\\Users\\DKZ\\OTHER_ALLOWED_DIR\\"
]
}
}
}The path C:\\Users\\DKZ in the block above is on the machine of whoever wrote it, not on yours.