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
| Name | Type | Description |
|---|---|---|
owner required | string | The account owner of the repository. The name is not case… |
repo required | string | The name of the repository without the .git extension. The… |
version required | integer | The version of the repository snapshot submission. |
job required | object | |
sha required | string | The commit SHA associated with this dependency snapshot. Maximum length: 64… |
ref required | string | The repository branch that triggered this snapshot. |
detector required | object | A description of the detector used. |
metadata | object | User-defined metadata to store domain-specific information limited to 8 keys… |
manifests | object | A collection of package manifests, which are a collection of related… |
scanned required | string | The 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:
{
"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:
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 ….