GitHub · Capability

github-repos-api — Alerts

github-repos-api — Alerts. 7 operations. Lead operation: GitHub List Secret Scanning Alerts for Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubAlerts

What You Can Do

GET
Listsecretscanningalertsforrepository — GitHub List Secret Scanning Alerts for Repository
/v1/repos/{owner}/{repo}/secret-scanning/alerts
GET
Getsecretscanningalert — GitHub Get Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}
PATCH
Updatesecretscanningalert — GitHub Update Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}
GET
Listlocationsforsecretscanningalert — GitHub List Locations for Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}/locations
GET
Checkifvulnerabilityalertsareenabledforrepository — GitHub Check if Vulnerability Alerts Are Enabled for Repository
/v1/repos/{owner}/{repo}/vulnerability-alerts
PUT
Enablevulnerabilityalerts — GitHub Enable Vulnerability Alerts
/v1/repos/{owner}/{repo}/vulnerability-alerts
DELETE
Disablevulnerabilityalerts — GitHub Disable Vulnerability Alerts
/v1/repos/{owner}/{repo}/vulnerability-alerts

MCP Tools

github-list-secret-scanning-alerts

GitHub List Secret Scanning Alerts for Repository

read-only idempotent
github-get-secret-scanning-alert

GitHub Get Secret Scanning Alert

read-only idempotent
github-update-secret-scanning-alert

GitHub Update Secret Scanning Alert

idempotent
github-list-locations-secret-scanning

GitHub List Locations for Secret Scanning Alert

read-only idempotent
github-check-if-vulnerability-alerts

GitHub Check if Vulnerability Alerts Are Enabled for Repository

read-only idempotent
github-enable-vulnerability-alerts

GitHub Enable Vulnerability Alerts

idempotent
github-disable-vulnerability-alerts

GitHub Disable Vulnerability Alerts

idempotent

Capability Spec

repo-tags-alerts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Alerts
  description: 'github-repos-api — Alerts. 7 operations. Lead operation: GitHub List Secret Scanning Alerts for Repository.
    Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Alerts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repo-tags-alerts
    baseUri: ''
    description: github-repos-api — Alerts business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-secret-scanning-alerts
      path: /repos/{owner}/{repo}/secret-scanning/alerts
      operations:
      - name: listsecretscanningalertsforrepository
        method: GET
        description: GitHub List Secret Scanning Alerts for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-secret-scanning-alerts-alert_number
      path: /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}
      operations:
      - name: getsecretscanningalert
        method: GET
        description: GitHub Get Secret Scanning Alert
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: updatesecretscanningalert
        method: PATCH
        description: GitHub Update Secret Scanning Alert
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-secret-scanning-alerts-alert_number-locations
      path: /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations
      operations:
      - name: listlocationsforsecretscanningalert
        method: GET
        description: GitHub List Locations for Secret Scanning Alert
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-vulnerability-alerts
      path: /repos/{owner}/{repo}/vulnerability-alerts
      operations:
      - name: checkifvulnerabilityalertsareenabledforrepository
        method: GET
        description: GitHub Check if Vulnerability Alerts Are Enabled for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: enablevulnerabilityalerts
        method: PUT
        description: GitHub Enable Vulnerability Alerts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: disablevulnerabilityalerts
        method: DELETE
        description: GitHub Disable Vulnerability Alerts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: repo-tags-alerts-rest
    port: 8080
    description: REST adapter for github-repos-api — Alerts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/secret-scanning/alerts
      name: repos-owner-repo-secret-scanning-alerts
      description: REST surface for repos-owner-repo-secret-scanning-alerts.
      operations:
      - method: GET
        name: listsecretscanningalertsforrepository
        description: GitHub List Secret Scanning Alerts for Repository
        call: repo-tags-alerts.listsecretscanningalertsforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}
      name: repos-owner-repo-secret-scanning-alerts-alert-number
      description: REST surface for repos-owner-repo-secret-scanning-alerts-alert_number.
      operations:
      - method: GET
        name: getsecretscanningalert
        description: GitHub Get Secret Scanning Alert
        call: repo-tags-alerts.getsecretscanningalert
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatesecretscanningalert
        description: GitHub Update Secret Scanning Alert
        call: repo-tags-alerts.updatesecretscanningalert
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}/locations
      name: repos-owner-repo-secret-scanning-alerts-alert-number-locations
      description: REST surface for repos-owner-repo-secret-scanning-alerts-alert_number-locations.
      operations:
      - method: GET
        name: listlocationsforsecretscanningalert
        description: GitHub List Locations for Secret Scanning Alert
        call: repo-tags-alerts.listlocationsforsecretscanningalert
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/vulnerability-alerts
      name: repos-owner-repo-vulnerability-alerts
      description: REST surface for repos-owner-repo-vulnerability-alerts.
      operations:
      - method: GET
        name: checkifvulnerabilityalertsareenabledforrepository
        description: GitHub Check if Vulnerability Alerts Are Enabled for Repository
        call: repo-tags-alerts.checkifvulnerabilityalertsareenabledforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: enablevulnerabilityalerts
        description: GitHub Enable Vulnerability Alerts
        call: repo-tags-alerts.enablevulnerabilityalerts
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: disablevulnerabilityalerts
        description: GitHub Disable Vulnerability Alerts
        call: repo-tags-alerts.disablevulnerabilityalerts
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repo-tags-alerts-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Alerts. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-list-secret-scanning-alerts
      description: GitHub List Secret Scanning Alerts for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-alerts.listsecretscanningalertsforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-secret-scanning-alert
      description: GitHub Get Secret Scanning Alert
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-alerts.getsecretscanningalert
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-secret-scanning-alert
      description: GitHub Update Secret Scanning Alert
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repo-tags-alerts.updatesecretscanningalert
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-locations-secret-scanning
      description: GitHub List Locations for Secret Scanning Alert
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-alerts.listlocationsforsecretscanningalert
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-check-if-vulnerability-alerts
      description: GitHub Check if Vulnerability Alerts Are Enabled for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-alerts.checkifvulnerabilityalertsareenabledforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-enable-vulnerability-alerts
      description: GitHub Enable Vulnerability Alerts
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repo-tags-alerts.enablevulnerabilityalerts
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-disable-vulnerability-alerts
      description: GitHub Disable Vulnerability Alerts
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repo-tags-alerts.disablevulnerabilityalerts
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.