Prompt template

MCP Git commit-message prompt

An MCP prompt that embeds a repository's staged diff and asks a model to draft a commit message.

About this listing

The git_commit_message prompt in the MCP reference Git server turns staged repository changes into a user message for a model. It accepts the required repo_path argument, reads the staged diff, and includes that diff in a request for a commit message. If no changes are staged, it returns a message explaining that state instead.

The prompt prepares model input; it is not the server's separate git_commit tool and does not itself create a commit. Configure the containing server's --repository option to confine repository access. Free refers to the available code and prompt files, not separately chosen model services or infrastructure.

Documentation reference: Model Context Protocol contributors, Git MCP Server, https://github.com/modelcontextprotocol/servers/tree/main/src/git (CC BY 4.0). This original summary is not a reproduction of the documentation.

Source: Visionary Junction · Reuse terms