Udacity Commit

io.github.qwertymuzaffar由 GitHub 账号 qwertymuzaffar 发布v1.2.2更新于 Oct 25, 2026

Validate & format git commit messages per the Udacity Git Commit Message Style Guide.

已验证STDIO仅桌面开发者工具

概览

AI 生成的概览

一个本地 MCP 服务器,按 Udacity 风格指南检查并格式化 git 提交信息和分支名称。

可以做什么
按风格规则校验提交信息:类型前缀、主题长度、大小写、结尾不加句号、空行、正文换行。根据类型、主题以及可选的正文和页脚生成合规的提交信息。按 type/kebab-case 约定检查分支名称,并单独处理 release 分支和基础分支。以参考资源形式读取提交风格指南和分支命名规则。
适用场景
适合让助手以统一的 Udacity 风格起草或审查提交和分支,例如在提交前或整理混乱的提交历史时使用。
运行要求
通过 npx 从 npm 包 mcp-udacity-commit 在本地运行,需要 Node.js,首次获取时需要网络访问。未声明账号、API 密钥或环境变量。
安装前请注意
这些工具只检查和格式化文本,不会提交、推送或修改仓库。使用前请复核生成的提交信息,因为该服务器只遵循一种特定的风格指南。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Udacity Commit,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-udacity-commit

[npm version] [npm downloads] [License: MIT] [MCP]

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:

bash
claude mcp add udacity-commit -- npx -y mcp-udacity-commit

For Claude Desktop, add to claude_desktop_config.json:

json
{  "mcpServers": {    "udacity-commit": {      "command": "npx",      "args": ["-y", "mcp-udacity-commit"]    }  }}
Install from source
bash
git clone https://github.com/qwertymuzaffar/mcp-udacity-commitcd mcp-udacity-commitnpm installnpm run buildclaude mcp add udacity-commit -- node "$(pwd)/build/index.js"

What it exposes

PrimitiveNamePurpose
Resourceudacity://commit-styleguideThe style-guide rules, as markdown
Resourceudacity://branch-namingThe companion type/kebab-case branch-naming rules, as markdown
Toolvalidate_commit_messageChecks a message against every rule (type, ≤50-char subject, capitalization, no trailing period, blank line, ≤72-char body wrap)
Toolformat_commit_messageBuilds a compliant message from type + subject + optional body/footer
Toolvalidate_branch_nameChecks a branch name against the companion type/kebab-case convention (e.g. feat/add-dark-mode); release/* is a typed branch with a version-style description (release/1.2.0), and base branches like main are exempt

Example

format_commit_message turns loose parts into a compliant commit:

text
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 andlogging the user out. Serialize refreshes behind a single in-flightpromise so concurrent callers await the same request.
Resolves: #142

validate_commit_message flags every violation:

text
"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:

text
"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

bash
npm installnpm run build          # → build/index.jsnpm run test:client    # spawns the server and exercises the tools

License

MIT

来源:README.md,提交 b340d17

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.2.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分