Skip to content

jayluxferro/unminifyjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unminify-mcp

MCP (Model Context Protocol) server to unminify / beautify JS, CSS, and HTML code. Wraps js-beautify behind a single unminify tool with auto-detection of code type.

Installation

npm install
npm run build

Usage

stdio transport (default)

Run as a subprocess — typical for MCP client configs (Claude Desktop, VS Code, etc.):

unminify-mcp
# or
node dist/index.js

Configure in claude_desktop_config.json:

{
  "mcpServers": {
    "unminify": {
      "command": "node",
      "args": ["/path/to/unminify-mcp/dist/index.js"]
    }
  }
}

Streamable HTTP transport

unminify-mcp --transport http --port 3000

Endpoint: POST http://localhost:3000/mcp

SSE transport (legacy)

unminify-mcp --transport sse --port 3000

Endpoints:

  • GET http://localhost:3000/sse — SSE event stream
  • POST http://localhost:3000/messages?sessionId=... — client messages

MCP Tool

unminify

Unminify / beautify minified JS, CSS, or HTML code.

Parameter Type Required Default Description
code string yes The minified source code to beautify
type enum no "auto" Code type: "auto", "js", "css", or "html"

Returns the beautified code as text content with detectedType in the metadata.

Development

npm run dev          # Run with tsx (stdio transport)
npm run build        # Compile TypeScript → dist/

Acknowledgements

About

Free tool to unminify JS, CSS, HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors