MCP server exposing commit-check validation tools
Project description
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, 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_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, and author state 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": "..."
}
]
}
Installation
pip install commit-check-mcp
This 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.
Generic MCP client config:
{
"mcpServers": {
"commit-check": {
"command": "commit-check-mcp"
}
}
}
If the client needs the full path to the executable, first locate it:
which commit-check-mcp
Then use that absolute path in the client config.
Example using an absolute path:
{
"mcpServers": {
"commit-check": {
"command": "/absolute/path/to/commit-check-mcp"
}
}
}
For local development from this repository, that absolute path may point to something like .venv/bin/commit-check-mcp.
Run Manually
commit-check-mcp
The 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_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?)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
}
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
- 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
}
Config precedence is:
commit-checkbuilt-in defaults- repository config loaded from
repo_path config_pathwhen explicitly provided- inline
configoverrides passed to the tool
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file commit_check_mcp-0.1.2.tar.gz.
File metadata
- Download URL: commit_check_mcp-0.1.2.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbe19490b8275a8b41def1427ece7abf1a01a7132c1376f0471480dd52ae2486
|
|
| MD5 |
d977c08431e28c8c41f389e9efc9c64c
|
|
| BLAKE2b-256 |
d0c3bfe4df938fa9db2aa91c11e542fa7259a124156d81a85d454bd5eeb6c630
|
Provenance
The following attestation bundles were made for commit_check_mcp-0.1.2.tar.gz:
Publisher:
publish.yml on commit-check/commit-check-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
commit_check_mcp-0.1.2.tar.gz -
Subject digest:
bbe19490b8275a8b41def1427ece7abf1a01a7132c1376f0471480dd52ae2486 - Sigstore transparency entry: 1340763077
- Sigstore integration time:
-
Permalink:
commit-check/commit-check-mcp@999a4b317c22d257db5f439adbccdb968b36eeff -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/commit-check
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@999a4b317c22d257db5f439adbccdb968b36eeff -
Trigger Event:
release
-
Statement type:
File details
Details for the file commit_check_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: commit_check_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac4acf518bd57b2a61936d8288e86de86b24ee25f4331c8a3715e09db22046b3
|
|
| MD5 |
0cebeaa9dbc390a7a2e6181be0cafcc9
|
|
| BLAKE2b-256 |
e7acc258e0866eb75746e5dec3f57416fd2fdcecff8f419a3394a5932d8eea98
|
Provenance
The following attestation bundles were made for commit_check_mcp-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on commit-check/commit-check-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
commit_check_mcp-0.1.2-py3-none-any.whl -
Subject digest:
ac4acf518bd57b2a61936d8288e86de86b24ee25f4331c8a3715e09db22046b3 - Sigstore transparency entry: 1340763081
- Sigstore integration time:
-
Permalink:
commit-check/commit-check-mcp@999a4b317c22d257db5f439adbccdb968b36eeff -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/commit-check
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@999a4b317c22d257db5f439adbccdb968b36eeff -
Trigger Event:
release
-
Statement type: