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 分