Home / Servers / GitHub API / agents_create_org_variable
Create an organization variable
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Create an organization variable Creates an organization agent variable that you can reference in a GitHub Actions workflow. Authenticated users must have collaborator access to a repository to create, update, or read variables.… [POST /orgs/{org}/agents/variables]
Name on the gateway: github_api__agents_create_org_variable · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
org required | string | The organization name. The name is not case sensitive. |
name required | string | The name of the variable. |
value required | string | The value of the variable. |
visibility required | all | private | selected | The type of repositories in the organization that can access the variable.… |
selected_repository_ids | array | An array of repository ids that can access the organization variable. You can… |
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__agents_create_org_variable",
"arguments": {
"org": "…",
"name": "…",
"value": "…",
"visibility": "…"
}
}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 an organization variable tool with org set to ….