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

NameTypeDescription
org requiredstringThe organization name. The name is not case sensitive.
tool_namestringThe name of a code scanning tool. Only results by this tool will be listed.…
tool_guidstringThe GUID of a code scanning tool. Only results by this tool will be listed.…
beforestringA cursor, as given in the Link header. If specified, the query only searches…
afterstringA cursor, as given in the Link header. If specified, the query only searches…
pageintegerThe page number of the results to fetch. For more information, see "Using…
per_pageintegerThe number of results per page (max 100). For more information, see "Using…
directionasc | descThe direction to sort the results by.
stateopen | closed | dismissed | fixedIf specified, only code scanning alerts with this state will be returned.
sortcreated | updatedThe property by which to sort the results.
severitycritical | high | medium | low | warning | note | errorIf specified, only code scanning alerts with this severity will be returned.
assigneesstringFilter 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:

call_tool arguments
{
  "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:

Run in your terminal
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 ….

More from GitHub API