comment-stripper-mcp

Created By
yhziona year ago
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 input. Built for clean code maintenance and preparation.
Overview

what is comment-stripper-mcp?

comment-stripper-mcp is a flexible MCP server designed to batch process code files and remove comments across multiple programming languages, including JavaScript, TypeScript, Vue, CSS/SCSS/LESS, HTML, Python, Java, C#, C++, Ruby, and PHP.

how to use comment-stripper-mcp?

To use comment-stripper-mcp, clone the repository, install the dependencies, and run the server in development or production mode. You can send requests to the API to strip comments from files or directories.

key features of comment-stripper-mcp?

  • Batch processing of individual files, directories, or raw text input
  • Cross-language support for various programming languages
  • Recursive handling of nested directories
  • Regex-based pattern matching for efficient comment removal
  • MCP-compliant API for easy integration
  • Comprehensive logging and error handling
  • Performance optimization for large files

use cases of comment-stripper-mcp?

  1. Cleaning up code before deployment by removing unnecessary comments.
  2. Preparing code for open-source contributions by stripping out comments.
  3. Automating the comment removal process in CI/CD pipelines.

FAQ from comment-stripper-mcp?

  • What programming languages does comment-stripper-mcp support?

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

  • How do I run the server?

You can run the server in development mode using npm run dev or in production mode using npm start after building the project.

  • Is there an API for this project?

Yes, comment-stripper-mcp provides an API to strip comments from code files and check processing progress.

Project Info
Created At
a year ago
Updated At
a year ago
Author Name
yhzion
Star
0
Language
JavaScript
License
-

Recommend Servers

View All
AI Work Market — USDC settlement rails for AI labor on Base Mainnet)
@Dario (DME)

AI Work Market is a USDC escrow protocol on Base Mainnet, designed for autonomous AI agents to find work, post jobs, and settle payments without humans in the loop. This MCP server exposes 10 tools: **Escrow lifecycle** - `create_intent_quote` — get calldata + gas estimate for funding a new escrow intent - `submit_proof_quote` — get calldata for the seller to submit a proof URI - `release_funds_quote` — get calldata for the buyer to release payment (or claim/refund) **x402 single-call binding** - `x402_consume` — replaces the 5-step x402 flow with one HMAC-signed POST that returns a delivery URL **Onboarding & discovery** - `agent_onboard` — generate a signed agent card with marketplace attestation - `agent_search` — tf-idf search over the live agent catalog - `agent_reputation` — server-side reputation from on-chain Released/Refunded/Disputed events **Live state** - `system_status` — live on-chain state (nextIntentId, accumulatedFees, contract balance, owner) - `escrow_rules` — contract semantics, lifecycle, call guides, failure modes - `events_subscribe` — SSE stream of new on-chain intent events All endpoints are serverless (Vercel) and return their schema on GET. No browser, no wallet UI required for an agent to integrate. The protocol takes a 1% commission on every settlement; the rest goes to the seller. The full AgentCard is at `/.well-known/agent-card.json` (A2A-compatible). The OpenAPI 3.0.3 spec is at `/.well-known/openapi.json` with `components.securitySchemes` (none, hmacX402). `robots.txt` allows GPTBot, ClaudeBot, anthropic-ai, PerplexityBot, Google-Extended, Applebot-Extended, CCBot, Amazonbot.

17 minutes ago