Code Line Counter

•
1
•

Track and analyze the scale of AI-generated code by counting lines of code, comments, and blank lines across various programming languages.

This Model Context Protocol (MCP) tool is designed to automatically count the lines of code generated by AI. It provides detailed statistics on total lines, actual code lines, comment lines, and blank lines, helping users to monitor and understand the output scale of their AI models. The tool supports a wide range of programming languages for accurate comment detection and persistently stores historical data, offering valuable insights into AI code generation trends over time.

Características Principales

01Count code lines, comment lines, and blank lines for given code content
02Retrieve historical code line statistics filtered by time range
03Support for major programming languages including JavaScript, Python, Java, C++, Go, Rust, Swift, Kotlin, and TypeScript
04Automatic persistence of all collected statistics to a JSON file
05Seamless integration and automated invocation within MCP client environments
060 GitHub stars

Casos de Uso

01Evaluate the verbosity and efficiency of different AI models based on code line metrics
02Automatically monitor the line count of code generated by AI assistants
03Analyze historical trends and patterns in AI code generation output