Home / Servers / GitHub API / orgs_update_pat_accesses
Update the access to organization resources via fine-grained personal access tok
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Update the access to organization resources via fine-grained personal access tokens Updates the access organization members have to organization resources via fine-grained personal access tokens. Limited to revoking a token's existing access. Only GitHub Apps can use this endpoint. [POST /orgs/{org}/personal-access-tokens]
Name on the gateway: github_api__orgs_update_pat_accesses · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
org required | string | The organization name. The name is not case sensitive. |
action required | revoke | Action to apply to the fine-grained personal access token. |
pat_ids required | array | The IDs of the fine-grained personal access tokens. |
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__orgs_update_pat_accesses",
"arguments": {
"org": "…",
"action": "…",
"pat_ids": []
}
}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 update the access to organization resources via fine-grained personal access tok tool with org set to ….