Home / Servers / GitHub API / git_create_tag

Create a tag object

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

Create a tag object Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then… [POST /repos/{owner}/{repo}/git/tags]

Name on the gateway: github_api__git_create_tag · 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…
tag requiredstringThe tag's name. This is typically a version (e.g., "v0.0.1").
message requiredstringThe tag message.
object requiredstringThe SHA of the git object this is tagging.
type requiredcommit | tree | blobThe type of the object we're tagging. Normally this is a commit but it can…
taggerobjectAn object with information about the individual creating the tag.

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_tag",
  "arguments": {
    "owner": "…",
    "repo": "…",
    "tag": "…",
    "message": "…",
    "object": "…",
    "type": "…"
  }
}

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 tag object tool with owner set to ….

More from GitHub API