mcp-formatter
Format code files in a directory using Prettier to maintain consistent style and improve readability across development projects.
Instructions
Execute mcp-formatter: npx prettier --write .
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mcp-formatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Directory to run the command in (optional, defaults to current directory) |