code_complexity
Compute cyclomatic complexity for functions in TypeScript/JavaScript files to identify complex code and prioritize refactoring for better maintainability.
Instructions
Computes cyclomatic complexity for functions in a TypeScript/JavaScript file
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": "code_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the TS/JS file | |
| function | No | Compute only for this function (omit for all) |