Home / Servers / GitHub API / codespaces_remove_repository_for_secret_for_authenticated_us

Remove a selected repository from a user secret

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

Remove a selected repository from a user secret Removes a repository from the selected repositories for a user's development environment secret. The authenticated user must have Codespaces access to use this endpoint. OAuth app tokens and… [DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}]

Name on the gateway: github_api__codespaces_remove_repository_for_secret_for_authenticated_us · may change things.

Parameters

NameTypeDescription
secret_name requiredstringThe name of the secret.
repository_id requiredintegerrepository_id parameter

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__codespaces_remove_repository_for_secret_for_authenticated_us",
  "arguments": {
    "secret_name": "…",
    "repository_id": 0
  }
}

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 remove a selected repository from a user secret tool with secret_name set to ….

More from GitHub API