Home / Servers / GitHub API / teams_add_or_update_membership_for_user_in_org
Add or update team membership for a user
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Add or update team membership for a user Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team. Team synchronization is available for organizations using GitHub… [PUT /orgs/{org}/teams/{team_slug}/memberships/{username}]
Name on the gateway: github_api__teams_add_or_update_membership_for_user_in_org · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
org required | string | The organization name. The name is not case sensitive. |
team_slug required | string | The slug of the team name. |
username required | string | The handle for the GitHub user account. |
role | member | maintainer | The role that this user should have in the team. |
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__teams_add_or_update_membership_for_user_in_org",
"arguments": {
"org": "…",
"team_slug": "…",
"username": "…"
}
}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 add or update team membership for a user tool with org set to ….