About Scc
Scc is an MCP server published by boyter in the Science category: sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go. Conduid read 3 tools from its source: analyze, coupling and hotspots. No package is published for it, so it installs from a source checkout.
The repository has 8.9K stars and 367 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v4.1.0 (7 Sep 2026): Changelog 9f95cd6e06de134c1d5274f0595a69b18190edc6 Issue #762 (#763) eb6ac4cb889beabbfb2cb40841c1c07ff6adc25c fix(asp.net): correct the server side comment terminator (#… It follows v4.0.0 (24 Aug 2026), and the 5 most recent releases go back to v3.5.0 (17 Feb 2025). It passes all 5 static checks Conduid ran on the repository. Its topics include cli, coding-agents, container-security, developer-experience, devtools and git-worktree.
Install
git clone https://github.com/boyter/sccTools (3)
analyzeCount lines of code, comments, blanks and estimate complexity for a project directory or file. Supports 200+ languages. Returns per-language summary with: - files: number of source files - lines: total lines - code: lines of actual code - comment: lines of comments - blank: blank lines - complexity: estimated cyclomatic complexity - cognitive: nesting-weighted cognitive complexity (only when cognitive=true; 0 otherwise) - bytes: total size in bytes Also returns COCOMO cost/schedule estimates and optionally LOCOMO (LLM cost) estimates. Use by_file with sort=complexity to find the most complex files in a project.| Parameter | Type | Description |
|---|---|---|
| by_file | boolean | If true, return per-file results instead of per-language summary. Useful with sort to find e.g. the most complex or largest files. Use with limit to control response size. |
| cognitive | boolean | Compute nesting-weighted cognitive complexity in addition to cyclomatic complexity. Adds a 'cognitive' field to per-language, per-file and totals results. Off by default; when off the field is 0. |
| exclude_ext | string | Comma-separated list of file extensions to exclude (e.g. 'json,xml'). |
| include_ext | string | Comma-separated list of file extensions to include (e.g. 'go,java,js'). |
| limit | number | Maximum number of files to return per language when by_file is true. Defaults to 10. Set to -1 for unlimited. |
| locomo | boolean | Include LOCOMO (LLM Output COst MOdel) cost estimation in results. |
| locomo_preset | string | LOCOMO model preset: large (GPT-4/Opus class), medium (Sonnet class), small (Haiku class), local (local LLM). Default: medium. |
| no_duplicates | boolean | Remove duplicate files from stats. |
| no_min_gen | boolean | Exclude minified or generated files. |
| path | string | Directory or file path to analyze. Defaults to current directory. |
| sort | string | Column to sort results by: files, name, lines, blank, code, comment, complexity, bytes. Default: files. |
couplingReturn change-coupling from a git repository's history — files that historically change together. Has two modes, selected by whether the 'file' argument is set. WITH 'file' — the target file's "blast radius": the other files that change together with it. Use this before editing a file to discover what else you will likely need to read or change. For the target, returns each coupled file with: - file: path relative to the repo root - shared: number of commits that changed BOTH the target and this file - partnerCommits: this file's own commit count in the window - couple: P(this file changes | you changed the target), 0–100 — the blast-radius probability - reverse: P(target changes | this file changed), 0–100 — a large gap from couple marks a hub-style (asymmetric) link rather than a true peer coupling Partners are ranked by degree (highest first; base-rate corrected). Also returns the target's own commit count (targetCommits) and the history window walked. WITHOUT 'file' — the repo-wide all-pairs overview: every file pair that changes together, strongest first. For each pair, returns: - fileA, fileB: the two coupled paths, relative to the repo root - shared: number of commits that changed BOTH files - commitsA, commitsB: each file's own commit count in the window - degree: symmetric coupling ratio shared/(commitsA+commitsB−shared), 0–100 Pairs are ranked strongest first (most shared commits). Also returns the history window walked. Requires path to be inside a git repository.| Parameter | Type | Description |
|---|---|---|
| depth | number | Maximum number of recent commits to walk. Defaults to 1000. Set to 0 for unlimited (slower on large repos). |
| file | string | Optional target file path (relative to the repo, as it appears at HEAD). Set it for the per-file blast-radius view; omit it for the repo-wide all-pairs report. |
| limit | number | Maximum rows to return, strongest first — coupled files in per-file mode, file pairs in all-pairs mode. Defaults to 50. Set to -1 for unlimited. |
| path | string | Directory inside the git repository to analyze. Defaults to current directory. |
hotspotsRank the files in a git repository by "hotspot" score: complexity × change-frequency over recent history. Hotspots are the files most likely to need refactoring or the most attention during review — high complexity that also changes often. Walks the repo's git log (most recent commits first) and returns, per surviving file: - file: path relative to the repo root - language: detected language - complexity: estimated cyclomatic complexity at HEAD - commits: number of commits touching the file within the window - linesChanged: total added + removed lines across the window - authors: distinct authors (folded via .mailmap) - codeChurn / commentChurn: added lines classified as code vs comment - score: 0–100, normalised complexity × commits (higher = hotter) Also returns the history window walked (depth, commit count, date range). Requires path to be inside a git repository.| Parameter | Type | Description |
|---|---|---|
| depth | number | Maximum number of recent commits to walk. Defaults to 1000. Set to 0 for unlimited (slower on large repos). |
| limit | number | Maximum number of files to return, highest-scoring first. Defaults to 50. Set to -1 for unlimited. |
| path | string | Directory inside the git repository to analyze. Defaults to current directory. |
Security checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 13K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
- ✓No dynamic code executionScanned 67 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdiomcp.go:149
- Starts other programs
- 4 callscmd/badges/example.py:121, cmd/badges/main.go:492, cmd/badges/main.go:521
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 12 callscmd/badges/example.py:132, cmd/badges/main.go:483, cmd/badges/main.go:540
- Lockfile
- go.sum
Pattern matches on the source text of 67 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 13K words, fetched 6 days ago. The original in the repository is authoritative.
Read full README