MCP.so
登录

Comment Stripper MCP Server

@yhzion

基本信息

分类

其他

传输方式

stdio

作者

yhzion

关于 Comment Stripper MCP Server

A flexible MCP server that batch processes code files to remove comments across multiple programming languages. Currently supports JavaScript, TypeScript, and Vue files with regex-based pattern matching. Handles individual files, directories (including subdirectories), and text i

#comment-stripper#code-cleaner#mcp-server

Comment Stripper MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Comment Stripper MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is comment-stripper-mcp?

comment-stripper-mcp is an MCP server that batch processes code files to remove comments across multiple programming languages using regex-based pattern matching. It supports JavaScript, TypeScript, Vue, CSS/SCSS/LESS, HTML, Python, Java, C#, C++, Ruby, and PHP files. The server is built with Node.js and TypeScript, following Test-Driven Development methodology.

How to use comment-stripper-mcp?

Install Node.js 18+, clone the repository, and install dependencies. Use npm run dev for development or npm run build && npm start for production. The server runs on port 3000 by default. Configure via environment variables in a .env file. The main endpoint is POST /api/strip-comments accepting text, filePath, directoryPath, recursive, fileTypes, and trackProgress parameters.

Key features of comment-stripper-mcp

  • Process files, directories, or raw text input
  • Cross-language support for 11 programming languages
  • Recursively handle nested directories
  • Regex-based pattern matching for efficient comment removal
  • MCP-compliant API for easy integration
  • Comprehensive logging with multiple levels
  • API authentication for secure access
  • Progress tracking for large directory processing

Use cases of comment-stripper-mcp

  • Clean code files before analysis or transformation
  • Remove comments from source code for minification or obfuscation
  • Strip comments from legacy codebases to simplify migration
  • Batch process multiple files across directories and subdirectories
  • Preprocess code before sending to language models or code review tools

常见问题

1

How does comment-stripper-mcp remove comments?

It uses regex-based pattern matching specifically tailored for each supported language to identify and remove both single-line and multi-line comments.

2

What file types are supported?

JavaScript, TypeScript, Vue, CSS/SCSS/LESS, HTML, Python, Java, C#, C++, Ruby, and PHP files.

3

What are the runtime requirements?

Node.js 18 or higher, with npm or yarn installed.

4

How is the server configured?

Through environment variables defined in a `.env` file, covering port, host, log level, performance settings (chunk size, max workers, memory limit), and API authentication key.

5

How can I troubleshoot MCP connection issues with Claude Desktop?

Use absolute paths in the Claude Desktop config, ensure clean Node.js environment (e.g., via NVM), and check log files. The server includes stability improvements like `process.stdin.resume()` and keep-alive mechanisms.

评论

其他 分类下的更多 MCP 服务器