mcp-udacity-commit
This MCP server validates and formats Git commit messages and branch names per the Udacity Git Commit Message Style Guide.
Validate commit messages (
validate_commit_message): checks a full message for compliance (type prefix, subject ≤50 chars, capitalization, no trailing period, blank line after subject, body wrap ≤72 chars). Returns validity status with lists of problems and warnings.Format commit messages (
format_commit_message): auto-composes a compliant message fromtype(feat, fix, docs, style, refactor, test, chore), subject, optional body, footer. Capitalizes subject, removes trailing period, wraps body at 72 chars.Validate branch names (
validate_branch_name): checks againsttype/kebab-caseconvention (e.g.,feat/add-dark-mode), allowsrelease/*with version descriptions, exempts base branches (main).Access style guides: provides markdown resources for commit rules (
udacity://commit-styleguide) and branch naming (udacity://branch-naming).Integrate with Claude: add as an MCP server via
claude mcp addor Claude Desktop config for automated checks and formatting.
Validates and formats git commit messages according to the Udacity Git Commit Message Style Guide.
Click on "Deploy 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., "@mcp-udacity-commit Validate this commit message: 'fixed the bug'"
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.
mcp-udacity-commit
An MCP server that validates and formats git commit messages according to the Udacity Git Commit Message Style Guide.
Install
One line — paste it into your terminal:
claude mcp add udacity-commit -- npx -y mcp-udacity-commitFor Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"udacity-commit": {
"command": "npx",
"args": ["-y", "mcp-udacity-commit"]
}
}
}git clone https://github.com/qwertymuzaffar/mcp-udacity-commit
cd mcp-udacity-commit
npm install
npm run build
claude mcp add udacity-commit -- node "$(pwd)/build/index.js"Related MCP server: Cursor Auto-Review MCP Server
What it exposes
Primitive | Name | Purpose |
Resource |
| The style-guide rules, as markdown |
Resource |
| The companion |
Tool |
| Checks a message against every rule (type, ≤50-char subject, capitalization, no trailing period, blank line, ≤72-char body wrap) |
Tool |
| Builds a compliant message from |
Tool |
| Checks a branch name against the companion |
Example
format_commit_message turns loose parts into a compliant commit:
in: type=fix subject="prevent duplicate auth token refresh."
body="The refresh timer could fire twice under load, minting two tokens…"
footer="Resolves: #142"
out:
fix: Prevent duplicate auth token refresh
The refresh timer could fire twice under load, minting two tokens and
logging the user out. Serialize refreshes behind a single in-flight
promise so concurrent callers await the same request.
Resolves: #142validate_commit_message flags every violation:
"Fixed the login bug." → ❌ Not compliant.
• Subject must follow "type: Subject".
• Subject must not end with a period.validate_branch_name enforces the companion type/kebab-case convention:
"feat/add-dark-mode" → ✅ Compliant branch name.
"release/1.2.0" → ✅ Compliant branch name.
"Feature/Add_Dark_Mode" → ❌ Not compliant.
• Unknown type "Feature". Use one of: feat, fix, docs, style, refactor, test, chore, release.
• Description must be lowercase kebab-case. Got: "Add_Dark_Mode".
"main" → ✅ (base branch — feature-branch rules don't apply)Develop
npm install
npm run build # → build/index.js
npm run test:client # spawns the server and exercises the toolsLicense
MIT
Available Tools
3 toolsformat_commit_messageFormat a Udacity-style commit messageA
Compose a compliant commit message from its parts. The subject is capitalized, a trailing period is removed, and the body is wrapped at 72 characters.
Inputs: type (required), subject (required), body, footer. Returns: valid, message, problems, warnings
validate_branch_nameValidate a git branch nameA
Check a git branch name against the companion type/kebab-case convention (e.g. "feat/add-dark-mode"). Returns whether it is compliant plus any problems (violations) and warnings (hints). Base branches like main/master are exempt.
Inputs: name (required). Returns: valid, problems, warnings
validate_commit_messageValidate a commit messageB
Check a commit message against the Udacity Git Commit Message Style Guide. Returns whether it is compliant plus any problems (violations) and warnings (hints).
Inputs: message (required). Returns: valid, problems, warnings
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct aspect of commit conventions: branch name validation, commit message validation, and commit message formatting. There is no overlap in their purposes, making selection unambiguous.
All tool names follow the same verb_noun pattern: validate_branch_name, validate_commit_message, format_commit_message. This consistency makes the toolset predictable and easy to navigate.
With only 3 tools, the server is tightly scoped to its purpose of enforcing Udacity commit guidelines. Each tool earns its place, and the count is neither too thin nor overly heavy.
The server covers the full lifecycle of commit standard compliance: validating branch names, validating commit messages, and formatting commit messages. There are no obvious gaps in the domain.
Maintenance
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
MCP compatibility and transport verification server.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn intelligent MCP server that automatically generates Conventional Commits style commit messages by analyzing git diffs using LLM providers like DeepSeek and Groq. It enables developers to maintain standardized version history through natural language interactions in supported MCP clients.12MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that automates code reviews through linting, testing, and git diff analysis. It also generates conventional commit messages and detailed pull request descriptions based on file changes and code patterns.ISC
- AlicenseAqualityFmaintenanceAn MCP server that enforces safe git commits by allowing only specified files and providing fixup capabilities for earlier commits.21MIT
- FlicenseNot gradedqualityDmaintenanceMCP server providing commit rules with SemVer and conventional commits format for development teams.-