Format Javascript Files

MCP Server

by aitmpl.com · Added 5mo ago

Claude
492

Install

See GitHub for installation

Quick Setup Config

Copy & paste ready

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "format-javascript-files": {
      "command": "npx",
      "args": [
        "format-javascript-files"
      ]
    }
  }
}

Paste into your Claude Desktop config file, then restart Claude.

About

Automatically format JavaScript/TypeScript files after any Edit operation using prettier. This hook runs 'npx prettier --write' on any .js, .ts, .jsx, or .tsx file that Claude modifies, ensuring consistent code formatting. Uses npx so prettier doesn't need to be globally installed. Includes error su

Tags

developmenthookaitmplhook

From Our Store

View all →
Claude Code

Claude Code Power User Kit

$39+

Advanced Claude Code skills and configurations

OpenClaw

OpenClaw Business Starter Kit

$59+

Set Up Your AI Assistant in 60 Minutes