comment-stripper-mcp

comment-stripper-mcp

1.9

The project is an MCP server that specializes in removing comments from code files across multiple programming languages. It utilizes regex-based pattern matching and supports recursive directory processing, providing an efficient solution for ensuring clean codebases. Built with Node.js, it also supports flexible configuration and API-based integration.

Overview

A flexible MCP server designed to batch process code files to remove comments. It supports various programming languages such as JavaScript, TypeScript, Vue, CSS/SCSS/LESS, HTML, Python, Java, C#, C++, Ruby, and PHP. The server features regex-based pattern matching, recursive directory handling, API authentication, and performance optimization for large files.

Features

  • Process files, directories, or raw text input
  • Cross-language support
  • Recursively handle nested directories
  • Regex-based pattern matching
  • MCP-compliant API
  • Built with Node.js and TypeScript
  • Comprehensive logging system with multiple log levels
  • Robust error handling
  • Flexible configuration through environment variables
  • Performance optimization
  • API authentication
  • Progress tracking for large directory processing