commit-check-mcp
OfficialThis server exposes commit-check Git validation tools via the Model Context Protocol (MCP), enabling MCP clients to validate various aspects of a Git repository.
Core capabilities:
server_health— Check server health and retrieve version information for the server and its dependencies.validate_commit_message— Validate a commit message against configured rules (e.g., conventional commits format).validate_branch_name— Validate a branch name against naming convention rules.validate_author_info— Validate a commit author's name and/or email against configured rules.validate_push_safety— Determine if a push operation is a force push.validate_commit_context— Run combined validations (message, branch, and author) in a single call.validate_repository_state— Validate the full state of a repository (latest commit, current branch, author info, and optionally push safety) in one call.describe_validation_rules— Inspect the effective, fully-merged validation rules (defaults + repo config + overrides) that will be applied during checks.
Common options available on most tools:
repo_path: Target a specific local git repository.config_path: Point to an explicit TOML config file.config: Pass inline ad-hoc config overrides on top of defaults and repo config.
Allows Codeium's Windsurf IDE to validate commit messages, branch names, author info, push safety, and repository state using commit-check.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@commit-check-mcpvalidate commit message 'fix: typo' in current repository"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
commit-check-mcp
Model Context Protocol (MCP) server for commit-check.
commit-check-mcp exposes commit-check as local MCP tools so an MCP client can validate commit messages, branch names, author info, push safety, and repository state.
Features
This MCP server exposes commit-check validations as MCP tools:
server_health— returns server/sdk versionsvalidate_commit_message— validates a commit messagevalidate_branch_name— validates a branch name or the current repo branchvalidate_push_safety— validates that a push is not a force pushvalidate_author_info— validates author name/email or the repo's git author configvalidate_commit_context— runs combined checks in one callvalidate_repository_state— validates latest commit, current branch, author state, and optional push safety for a repodescribe_validation_rules— returns the effective config and enabled rules after merging defaults and repo config
All validation tools return the same structured commit-check result shape:
{
"status": "pass|fail",
"checks": [
{
"check": "message",
"status": "pass|fail",
"value": "...",
"error": "...",
"suggest": "..."
}
]
}Related MCP server: code-review-mcp-server
Installation
pip install commit-check-mcpThis installs the commit-check-mcp CLI entrypoint.
For local development from this repository:
pip install -e .Use With An MCP Client
This server runs over stdio, so it is meant to be launched by an MCP client rather than used as a long-running HTTP service.
With uvx (recommended — no install needed):
# Run once, no pip install required
uvx commit-check-mcpTip: If
uvis not installed, get it viacurl -LsSf https://astral.sh/uv/install.sh | sh.
Claude Desktop
{
"mcpServers": {
"commit-check": {
"command": "uvx",
"args": ["commit-check-mcp"]
}
}
}Claude Code CLI
{
"mcpServers": {
"commit-check": {
"command": "uvx",
"args": ["commit-check-mcp"]
}
}
}Add to your ~/.claude/settings.json or project-level .claude/settings.local.json.
Cursor
In Cursor, go to Settings → Cursor Settings → MCP → Add new MCP server and paste:
Field | Value |
Name |
|
Type |
|
Command |
|
Or add to your project's .cursor/mcp.json:
{
"mcpServers": {
"commit-check": {
"command": "uvx",
"args": ["commit-check-mcp"]
}
}
}Windsurf
Add to your ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"commit-check": {
"command": "uvx",
"args": ["commit-check-mcp"]
}
}
}Cline (VS Code)
Add a new MCP server in the Cline extension settings:
{
"mcpServers": {
"commit-check": {
"command": "uvx",
"args": ["commit-check-mcp"]
}
}
}Continue.dev (VS Code / JetBrains)
Add to your ~/.continue/config.json:
{
"experimental": {
"mcpServers": {
"commit-check": {
"command": "uvx",
"args": ["commit-check-mcp"]
}
}
}
}Roo Code
Add to your Roo Code MCP settings:
{
"mcpServers": {
"commit-check": {
"command": "uvx",
"args": ["commit-check-mcp"]
}
}
}Zed
Add to your ~/.config/zed/settings.json:
{
"mcp_servers": {
"commit-check": {
"command": "uvx",
"args": ["commit-check-mcp"]
}
}
}Generic / Any MCP Client
If your client does not support uvx, use pip and the direct path:
pip install commit-check-mcp
which commit-check-mcpThen use the absolute path in your config:
{
"mcpServers": {
"commit-check": {
"command": "/path/to/commit-check-mcp"
}
}
}Run Manually
# If installed via pip
commit-check-mcp
# Or via uvx (no install needed)
uvx commit-check-mcpThe server uses stdio transport, which is the recommended MCP default for local tool integrations.
Tool Usage
After the client starts the server, it will expose these tools:
server_health: returns server, SDK, and dependency versionsvalidate_commit_message(message, config?, repo_path?, config_path?)validate_branch_name(branch?, config?, repo_path?, config_path?)validate_push_safety(push_refs?, config?, repo_path?, config_path?)validate_author_info(author_name?, author_email?, config?, repo_path?, config_path?)validate_commit_context(message?, branch?, author_name?, author_email?, config?, repo_path?, config_path?)validate_repository_state(repo_path?, config?, config_path?, include_message?, include_branch?, include_author?, include_push?)describe_validation_rules(config?, repo_path?, config_path?)
The common optional arguments are:
repo_path: repository directory to validate againstconfig_path: explicit TOML config file; relative paths resolve fromrepo_pathconfig: ad-hoc config overrides merged on top of defaults and repo config
Common Examples
Validate a commit message using repo-local rules:
{
"message": "feat(api): add MCP validation tool",
"repo_path": "/path/to/repo"
}Validate the current repository branch using an explicit config file:
{
"repo_path": "/path/to/repo",
"config_path": ".github/commit-check.toml"
}Validate the full repository state:
{
"repo_path": "/path/to/repo",
"include_message": true,
"include_branch": true,
"include_author": true
}Validate push safety from git pre-push hook ref metadata:
{
"repo_path": "/path/to/repo",
"push_refs": "refs/heads/main abc123 refs/heads/main def456"
}Inspect the final merged rules that will be applied:
{
"repo_path": "/path/to/repo",
"config": {
"commit": {
"require_body": true
}
}
}Repository-Aware Validation
commit-check is most useful when it runs against a real git repository and its cchk.toml or commit-check.toml file. This MCP server now supports that directly:
repo_path— run git-based validations against a specific repositoryconfig_path— point to an explicit TOML config file; relative paths are resolved fromrepo_pathconfig— apply ad-hoc overrides on top of defaults and repo config
Typical patterns:
Validate an explicit message with a repository's rules
Validate the current repository state without passing message/branch/author values manually
Validate push safety using pre-push ref metadata, or check the current branch against its upstream
Inspect which rules are actually enabled after config merging
Example payload for a repository-wide validation:
{
"repo_path": "/path/to/repo",
"include_message": true,
"include_branch": true,
"include_author": true,
"include_push": true
}Config precedence is:
commit-checkbuilt-in defaultsrepository config loaded from
repo_pathconfig_pathwhen explicitly providedinline
configoverrides passed to the tool
Published On
Directory | Link |
Official MCP Registry | |
Glama.ai | |
PyPI |
mcp-name: io.github.commit-check/commit-check-mcp
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/commit-check/commit-check-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server