ars-system/mcp-pre-commit
MCP tool server for managing git repositories and pre-commit hooks. Automatically detects project type (Python/JS/TS) and configures appropriate pre-commit hooks with Black, Flake8, ESLint, Prettier, and more.
Platform-specific configuration:
{
"mcpServers": {
"mcp-pre-commit": {
"command": "npx",
"args": [
"-y",
"mcp-pre-commit"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
A Model Context Protocol (MCP) tool server that helps LLM agents manage git repositories and pre-commit hooks automatically.
This MCP server provides tools to:
pre-commit installed (for hook installation)brew install pre-commitpip install pre-commitnpm install -g mcp-pre-commitnpm installnpm run buildStart the MCP server:
npm startOr run in development mode with auto-rebuild:
npm run watchAdd this server to your MCP client configuration.
macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"pre-commit-manager": {
"command": "mcp-pre-commit"
}
}
}Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"pre-commit-manager": {
"command": "mcp-pre-commit"
}
}
}{
"mcpServers": {
"pre-commit-manager": {
"command": "node",
"args": ["/absolute/path/to/mcp-pre-commit/dist/index.js"]
}
}
}Refer to your MCP client's documentation for configuration instructions. The command is mcp-pre-commit (for npm installation) or node /path/to/dist/index.js (for source installation).
Loading reviews...