@clinetools/complexity
v0.1.0
Published
Calculate cyclomatic complexity, cognitive complexity, maintainability index, and Halstead metrics for any codebase. Supports JS/TS, Python, Go, Rust, Java.
Downloads
90
Maintainers
Readme
Code Complexity Analyzer
Calculate cyclomatic complexity, cognitive complexity, maintainability index, and Halstead metrics for any codebase. Supports JS/TS, Python, Go, Rust, Java.
Quick Start
npx @clinetools/complexitySetup
1. Get your token
Sign up at clinetools.com and get your API token.
2. Set environment variable
export CLINETOOLS_TOKEN=ct_live_...3. Add to your MCP client
Claude Code
claude mcp add complexity -- npx @clinetools/complexityClaude Desktop / Cline
Add to your MCP settings JSON:
{
"mcpServers": {
"complexity": {
"command": "npx",
"args": ["@clinetools/complexity"],
"env": {
"CLINETOOLS_TOKEN": "ct_live_..."
}
}
}
}Links
License
MIT
