MCP server exposing commit-check validation tools
Project description
commit-check-mcp
Model Context Protocol (MCP) server for commit-check.
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": "..."
}
]
}
Install
pip install -e .
Run
commit-check-mcp
The server runs over stdio transport (recommended MCP default for local tool integrations).
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
}
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.1.post1.dev1.tar.gz.
File metadata
- Download URL: commit_check_mcp-0.1.1.post1.dev1.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ed9d7e26d7116efad0dd5202ab8b2649965a4225f8cb91e67e339c0f5e5b1c5
|
|
| MD5 |
769e38db7972e1241d9af34a29bbec34
|
|
| BLAKE2b-256 |
44aa3cb28ddf4ae30f9e7d799c4add7179b57357a97f4666bca501ccc949a310
|
Provenance
The following attestation bundles were made for commit_check_mcp-0.1.1.post1.dev1.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.1.post1.dev1.tar.gz -
Subject digest:
1ed9d7e26d7116efad0dd5202ab8b2649965a4225f8cb91e67e339c0f5e5b1c5 - Sigstore transparency entry: 1340675132
- Sigstore integration time:
-
Permalink:
commit-check/commit-check-mcp@6c4d918a925029f2e9c3c4ec0dc85cb6bd4b32af -
Branch / Tag:
refs/heads/main - Owner: https://github.com/commit-check
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c4d918a925029f2e9c3c4ec0dc85cb6bd4b32af -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file commit_check_mcp-0.1.1.post1.dev1-py3-none-any.whl.
File metadata
- Download URL: commit_check_mcp-0.1.1.post1.dev1-py3-none-any.whl
- Upload date:
- Size: 7.0 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 |
0786b1df68c4c08291ba5d6b9e4e5dd2e39270e61163f71b14cf9790096a65e3
|
|
| MD5 |
4e11520233ba22eb06c5a6c9d5dbd877
|
|
| BLAKE2b-256 |
57761161f8a0c1d7ab0c86a27f953d78cc301d2a27c810fce78c3dd83b410506
|
Provenance
The following attestation bundles were made for commit_check_mcp-0.1.1.post1.dev1-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.1.post1.dev1-py3-none-any.whl -
Subject digest:
0786b1df68c4c08291ba5d6b9e4e5dd2e39270e61163f71b14cf9790096a65e3 - Sigstore transparency entry: 1340675134
- Sigstore integration time:
-
Permalink:
commit-check/commit-check-mcp@6c4d918a925029f2e9c3c4ec0dc85cb6bd4b32af -
Branch / Tag:
refs/heads/main - Owner: https://github.com/commit-check
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c4d918a925029f2e9c3c4ec0dc85cb6bd4b32af -
Trigger Event:
workflow_dispatch
-
Statement type: