yhzion/comment-stripper-mcp
If you are the rightful owner of comment-stripper-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A flexible MCP server that batch processes code files to remove comments across multiple programming languages.
The comment-stripper-mcp server implements the Model Context Protocol (MCP) to provide a service that removes comments from code files. It supports a wide range of programming languages including JavaScript, TypeScript, Vue, CSS/SCSS/LESS, HTML, Python, Java, C#, C++, Ruby, and PHP. The server can process individual files, directories, or direct text input, returning the cleaned code with comments stripped out. Developed using Test-Driven Development (TDD), it ensures high code quality and comprehensive test coverage. The server is built with Node.js and TypeScript, offering features like regex-based pattern matching, recursive directory handling, and a comprehensive logging system. It also includes performance optimizations for processing large files and API authentication for secure access.
Features
- Process files, directories, or raw text input
- Cross-language support (JS, TS, Vue, CSS/SCSS/LESS, HTML, Python, Java, C#, C++, Ruby, and PHP)
- Recursively handle nested directories
- Regex-based pattern matching for efficient comment removal
- MCP-compliant API for easy integration
Usages
usage with Claude Desktop
{ "mcpServers": { "comment-stripper": { "command": "/절대/경로/node", "args": [ "/절대/경로/comment-stripper-mcp/build/index.js" ] } } }