Code Line Counter icon

Code Line Counter

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

About

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.

Key Features

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

Use Cases

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

Advertisement