naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Alerts description: 'GitHub Repos API — Alerts. 13 operations. Lead operation: Get Code Scanning Alert. 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: temp-alerts baseUri: '' description: GitHub Repos API — Alerts business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-code-scanning-alerts-alert_number path: /repos/{owner}/{repo}/code-scanning/alerts/{alert_number} operations: - name: getcodescanningalert method: GET description: Get Code 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: updatecodescanningalert method: PATCH description: Update Code 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-code-scanning-alerts-alert_number-instances path: /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances operations: - name: listinstancesofcodescanningalert method: GET description: List Instances Of Code 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-dependabot-alerts path: /repos/{owner}/{repo}/dependabot/alerts operations: - name: listdependabotalertsforrepository method: GET description: List Dependabot Alerts For Repository outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: page in: query type: integer description: '**Deprecated**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead.' - name: per_page in: query type: integer description: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.9/rest/using - 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-dependabot-alerts-alert_number path: /repos/{owner}/{repo}/dependabot/alerts/{alert_number} operations: - name: getdependabotalert method: GET description: Get Dependabot 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: updatedependabotalert method: PATCH description: Update Dependabot 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 path: /repos/{owner}/{repo}/secret-scanning/alerts operations: - name: listsecretscanningalertsforrepository method: GET description: 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: 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: 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: 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: 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: 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: 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: temp-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}/code-scanning/alerts/{alert-number} name: repos-owner-repo-code-scanning-alerts-alert-number description: REST surface for repos-owner-repo-code-scanning-alerts-alert_number. operations: - method: GET name: getcodescanningalert description: Get Code Scanning Alert call: temp-alerts.getcodescanningalert with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PATCH name: updatecodescanningalert description: Update Code Scanning Alert call: temp-alerts.updatecodescanningalert 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}/code-scanning/alerts/{alert-number}/instances name: repos-owner-repo-code-scanning-alerts-alert-number-instances description: REST surface for repos-owner-repo-code-scanning-alerts-alert_number-instances. operations: - method: GET name: listinstancesofcodescanningalert description: List Instances Of Code Scanning Alert call: temp-alerts.listinstancesofcodescanningalert 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}/dependabot/alerts name: repos-owner-repo-dependabot-alerts description: REST surface for repos-owner-repo-dependabot-alerts. operations: - method: GET name: listdependabotalertsforrepository description: List Dependabot Alerts For Repository call: temp-alerts.listdependabotalertsforrepository with: page: rest.page per_page: rest.per_page Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/dependabot/alerts/{alert-number} name: repos-owner-repo-dependabot-alerts-alert-number description: REST surface for repos-owner-repo-dependabot-alerts-alert_number. operations: - method: GET name: getdependabotalert description: Get Dependabot Alert call: temp-alerts.getdependabotalert with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PATCH name: updatedependabotalert description: Update Dependabot Alert call: temp-alerts.updatedependabotalert 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 name: repos-owner-repo-secret-scanning-alerts description: REST surface for repos-owner-repo-secret-scanning-alerts. operations: - method: GET name: listsecretscanningalertsforrepository description: List Secret Scanning Alerts For Repository call: temp-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: Get Secret Scanning Alert call: temp-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: Update Secret Scanning Alert call: temp-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: List Locations For Secret Scanning Alert call: temp-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: Check If Vulnerability Alerts Are Enabled For Repository call: temp-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: Enable Vulnerability Alerts call: temp-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: Disable Vulnerability Alerts call: temp-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: temp-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: get-code-scanning-alert description: Get Code Scanning Alert hints: readOnly: true destructive: false idempotent: true call: temp-alerts.getcodescanningalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: update-code-scanning-alert description: Update Code Scanning Alert hints: readOnly: false destructive: false idempotent: true call: temp-alerts.updatecodescanningalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: list-instances-code-scanning-alert description: List Instances Of Code Scanning Alert hints: readOnly: true destructive: false idempotent: true call: temp-alerts.listinstancesofcodescanningalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: list-dependabot-alerts-repository description: List Dependabot Alerts For Repository hints: readOnly: true destructive: false idempotent: true call: temp-alerts.listdependabotalertsforrepository with: page: tools.page per_page: tools.per_page Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: get-dependabot-alert description: Get Dependabot Alert hints: readOnly: true destructive: false idempotent: true call: temp-alerts.getdependabotalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: update-dependabot-alert description: Update Dependabot Alert hints: readOnly: false destructive: false idempotent: true call: temp-alerts.updatedependabotalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: list-secret-scanning-alerts-repository description: List Secret Scanning Alerts For Repository hints: readOnly: true destructive: false idempotent: true call: temp-alerts.listsecretscanningalertsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: get-secret-scanning-alert description: Get Secret Scanning Alert hints: readOnly: true destructive: false idempotent: true call: temp-alerts.getsecretscanningalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: update-secret-scanning-alert description: Update Secret Scanning Alert hints: readOnly: false destructive: false idempotent: true call: temp-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: list-locations-secret-scanning-alert description: List Locations For Secret Scanning Alert hints: readOnly: true destructive: false idempotent: true call: temp-alerts.listlocationsforsecretscanningalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: check-if-vulnerability-alerts-are description: Check If Vulnerability Alerts Are Enabled For Repository hints: readOnly: true destructive: false idempotent: true call: temp-alerts.checkifvulnerabilityalertsareenabledforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: enable-vulnerability-alerts description: Enable Vulnerability Alerts hints: readOnly: false destructive: false idempotent: true call: temp-alerts.enablevulnerabilityalerts with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: disable-vulnerability-alerts description: Disable Vulnerability Alerts hints: readOnly: false destructive: true idempotent: true call: temp-alerts.disablevulnerabilityalerts with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.