Home / Servers / GitHub API / git_create_commit

Create a commit

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Create a commit Creates a new Git commit object. **Signature verification object** The response will include a verification object that describes the result of verifying the commit's signature. The following fields… [POST /repos/{owner}/{repo}/git/commits]

Name on the gateway: github_api__git_create_commit · may change things.

Parameters

NameTypeDescription
owner requiredstringThe account owner of the repository. The name is not case…
repo requiredstringThe name of the repository without the .git extension. The…
message requiredstringThe commit message
tree requiredstringThe SHA of the tree object this commit points to
parentsarrayThe full SHAs of the commits that were the parents of this commit. If omitted…
authorobjectInformation about the author of the commit. By default, the author will be the…
committerobjectInformation about the person who is making the commit. By default, committer…
signaturestringThe PGP signature of the commit. GitHub adds the signature to the gpgsig…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "github_api__git_create_commit",
  "arguments": {
    "owner": "…",
    "repo": "…",
    "message": "…",
    "tree": "…"
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a commit tool with owner set to ….

More from GitHub API