Home / Servers / GitHub API / dependency_graph_create_repository_snapshot

Create a snapshot of dependencies for a repository

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

Create a snapshot of dependencies for a repository Create a new snapshot of a repository's dependencies. The authenticated user must have access to the repository. OAuth app tokens and personal access tokens (classic) need the repo scope to use this… [POST /repos/{owner}/{repo}/dependency-graph/snapshots]

Name on the gateway: github_api__dependency_graph_create_repository_snapshot · 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…
version requiredintegerThe version of the repository snapshot submission.
job requiredobject
sha requiredstringThe commit SHA associated with this dependency snapshot. Maximum length: 64…
ref requiredstringThe repository branch that triggered this snapshot.
detector requiredobjectA description of the detector used.
metadataobjectUser-defined metadata to store domain-specific information limited to 8 keys…
manifestsobjectA collection of package manifests, which are a collection of related…
scanned requiredstringThe time at which the snapshot was scanned.

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__dependency_graph_create_repository_snapshot",
  "arguments": {
    "owner": "…",
    "repo": "…",
    "version": 0,
    "job": "…",
    "sha": "…",
    "ref": "…",
    "detector": "…",
    "scanned": "…"
  }
}

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 snapshot of dependencies for a repository tool with owner set to ….

More from GitHub API