sast_scan_directory
Run static analysis on a TypeScript/JavaScript directory: initializes AST, discovers source files, executes 11 analyzers, and returns aggregated findings sorted by severity.
Instructions
Run ALL static analysis checks on a TypeScript/JavaScript source directory. Initializes AST project, discovers source files, runs all 11 analyzers, and returns aggregated findings sorted by severity.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "sast_scan_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path containing TypeScript/JavaScript source files to analyze | |
| tsconfig_path | No | Path to tsconfig.json (optional) | |
| include_node_modules | No | Include node_modules in scan (default: false) |