Skip to main content
Glama

Commit Helper MCP

by jolfr
  • Apple

generate_and_commit

Generate conventional commit messages and optionally execute commits in one step. Streamline Git workflows by combining message generation with repository operations using type, subject, and optional details like scope, body, and footer.

Instructions

Generate commit message and optionally execute commit in one step.

Combines message generation with git operations for streamlined workflow.

Args: type: Commit type (feat, fix, docs, etc.) subject: Commit subject/description repo_path: Path to git repository body: Optional detailed description scope: Optional scope of changes breaking: Whether this is a breaking change footer: Optional footer (e.g., issue references) stage_all: Whether to stage all changes (not implemented yet) sign_off: Whether to add sign-off to commit (default: True) preview_only: If True, only preview (default for safety)

Returns: Dict containing: - message: Generated commit message - is_valid: Whether message is valid - git_preview: Preview of git operation (if preview_only=True) - commit_result: Commit execution result (if preview_only=False)

Input Schema

NameRequiredDescriptionDefault
bodyNo
breakingNo
footerNo
preview_onlyNo
repo_pathYes
scopeNo
sign_offNo
stage_allNo
subjectYes
typeYes

Input Schema (JSON Schema)

{ "properties": { "body": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Body" }, "breaking": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "title": "Breaking" }, "footer": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Footer" }, "preview_only": { "default": true, "title": "Preview Only", "type": "boolean" }, "repo_path": { "title": "Repo Path", "type": "string" }, "scope": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Scope" }, "sign_off": { "default": true, "title": "Sign Off", "type": "boolean" }, "stage_all": { "default": true, "title": "Stage All", "type": "boolean" }, "subject": { "title": "Subject", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "type", "subject", "repo_path" ], "title": "generate_and_commitArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jolfr/commit-helper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server