Home / Servers / GitHub API / orgs_set_public_membership_for_authenticated_user
Set public organization membership for the authenticated user
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Set public organization membership for the authenticated user The user can publicize their own membership. (A user cannot publicize the membership for another user.) Note that you'll need to set Content-Length to zero when calling out to this endpoint. For… [PUT /orgs/{org}/public_members/{username}]
Name on the gateway: github_api__orgs_set_public_membership_for_authenticated_user · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
org required | string | The organization name. The name is not case sensitive. |
username required | string | The handle for the GitHub user account. |
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_set_public_membership_for_authenticated_user",
"arguments": {
"org": "…",
"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 set public organization membership for the authenticated user tool with org set to ….