naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Vulnerabilities description: 'GitHub Repos API — Vulnerabilities. 3 operations. Lead operation: Check If Vulnerability Alerts Are Enabled For Repository. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Vulnerabilities created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: temp-vulnerabilities baseUri: '' description: GitHub Repos API — Vulnerabilities business capability. Self-contained, no shared references. resources: - 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-vulnerabilities-rest port: 8080 description: REST adapter for GitHub Repos API — Vulnerabilities. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - 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-vulnerabilities.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-vulnerabilities.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-vulnerabilities.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-vulnerabilities-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Vulnerabilities. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: check-if-vulnerability-alerts-are description: Check If Vulnerability Alerts Are Enabled For Repository hints: readOnly: true destructive: false idempotent: true call: temp-vulnerabilities.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-vulnerabilities.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-vulnerabilities.disablevulnerabilityalerts with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.