多语言代码注释清除工具
一个灵活的MCP服务器,批量处理多种编程语言代码文件以移除注释,支持JS、TS、Vue等。
快速入门
前置条件
- 安装 Node.js 18+ 和 npm/yarn
安装步骤
- 克隆仓库: git clone https://github.com/yhzion/comment-stripper-mcp.git cd comment-stripper-mcp
- 安装依赖: npm install 或 yarn install
启动服务
- 开发模式:npm run dev 或 yarn dev
- 生产模式: npm run build && npm start 或 yarn build && yarn start 默认运行在端口3000。
配置
创建 .env 文件,设置环境变量如 PORT、LOG_LEVEL 等。
测试
运行测试:npm test 或 yarn test 查看覆盖率:npm run test:coverage