Development
Remove single-line (//...) and multi-line (/*...*/) comments from code
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/code-comment-remover' \
-H 'Content-Type: application/json' \
-d '{"codeInput":"Paste your code here...","removeSingleLine":true,"removeMultiLine":true,"preserveShebang":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/code-comment-remover| Name | Type | Required | Description |
|---|---|---|---|
| codeInput | textarea | Yes | — |
| removeSingleLine | checkbox | No | — |
| removeMultiLine | checkbox | No | — |
| preserveShebang | checkbox | No | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-code-comment-remover": {
"name": "code-comment-remover",
"description": "Remove single-line (//...) and multi-line (/*...*/) comments from code",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=code-comment-remover",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "code-comment-remover",
"arguments": {
"codeInput": "Paste your code here...",
"removeSingleLine": true,
"removeMultiLine": true,
"preserveShebang": true
}
}
}Questions or issues? Contact [email protected]