Home / Servers / GitHub API / code_scanning_list_alerts_for_org
List code scanning alerts for an organization
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
List code scanning alerts for an organization Lists code scanning alerts for the default branch for all eligible repositories in an organization. Eligible repositories are repositories that are owned by organizations that you own or for which… [GET /orgs/{org}/code-scanning/alerts]
Name on the gateway: github_api__code_scanning_list_alerts_for_org · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
org required | string | The organization name. The name is not case sensitive. |
tool_name | string | The name of a code scanning tool. Only results by this tool will be listed.… |
tool_guid | string | The GUID of a code scanning tool. Only results by this tool will be listed.… |
before | string | A cursor, as given in the Link header. If specified, the query only searches… |
after | string | A cursor, as given in the Link header. If specified, the query only searches… |
page | integer | The page number of the results to fetch. For more information, see "Using… |
per_page | integer | The number of results per page (max 100). For more information, see "Using… |
direction | asc | desc | The direction to sort the results by. |
state | open | closed | dismissed | fixed | If specified, only code scanning alerts with this state will be returned. |
sort | created | updated | The property by which to sort the results. |
severity | critical | high | medium | low | warning | note | error | If specified, only code scanning alerts with this severity will be returned. |
assignees | string | Filter alerts by assignees. Provide a comma-separated list of user handles… |
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__code_scanning_list_alerts_for_org",
"arguments": {
"org": "…"
}
}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 list code scanning alerts for an organization tool with org set to ….