naftiko: 1.0.0-alpha2 info: label: GitHub Org API — Secrets description: 'GitHub Org API — Secrets. 17 operations. Lead operation: GitHub List Organization Secrets. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Secrets created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: organizations-secrets baseUri: '' description: GitHub Org API — Secrets business capability. Self-contained, no shared references. resources: - name: orgs-org-actions-secrets path: /orgs/{org}/actions/secrets operations: - name: listorganizationsecrets method: GET description: GitHub List Organization Secrets outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-actions-secrets-secret_name path: /orgs/{org}/actions/secrets/{secret_name} operations: - name: getanorganizationsecret method: GET description: GitHub Get an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createorupdateanorganizationsecret method: PUT description: GitHub Create or Update an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteanorganizationsecret method: DELETE description: GitHub Delete an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-actions-secrets-secret_name-repositories path: /orgs/{org}/actions/secrets/{secret_name}/repositories operations: - name: listselectedrepositoriesforanorganizationsecret method: GET description: GitHub List Selected Repositories for an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. - name: setselectedrepositoriesforanorganizationsecret method: PUT description: GitHub Set Selected Repositories for an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-org-actions-secrets-secret_name-repositories-repository_id path: /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id} operations: - name: addselectedrepositorytoanorganizationsecret method: PUT description: GitHub Add Selected Repository to an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: repository_id in: path type: integer required: true - name: removeselectedrepositoryfromanorganizationsecret method: DELETE description: GitHub Remove Selected Repository from an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: repository_id in: path type: integer required: true - name: orgs-org-dependabot-secrets path: /orgs/{org}/dependabot/secrets operations: - name: listorganizationsecrets method: GET description: GitHub List Organization Secrets outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-dependabot-secrets-secret_name path: /orgs/{org}/dependabot/secrets/{secret_name} operations: - name: getanorganizationsecret method: GET description: GitHub Get an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createorupdateanorganizationsecret method: PUT description: GitHub Create or Update an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteanorganizationsecret method: DELETE description: GitHub Delete an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-dependabot-secrets-secret_name-repositories path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories operations: - name: listselectedrepositoriesforanorganizationsecret method: GET description: GitHub List Selected Repositories for an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. - name: setselectedrepositoriesforanorganizationsecret method: PUT description: GitHub Set Selected Repositories for an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-org-dependabot-secrets-secret_name-repositories-repository_id path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id} operations: - name: addselectedrepositorytoanorganizationsecret method: PUT description: GitHub Add Selected Repository to an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: repository_id in: path type: integer required: true - name: removeselectedrepositoryfromanorganizationsecret method: DELETE description: GitHub Remove Selected Repository from an Organization Secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: repository_id in: path type: integer required: true - name: orgs-org-secret-scanning-alerts path: /orgs/{org}/secret-scanning/alerts operations: - name: listsecretscanningalertsforanorganization method: GET description: GitHub List Secret Scanning Alerts for an Organization outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: organizations-secrets-rest port: 8080 description: REST adapter for GitHub Org API — Secrets. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/actions/secrets name: orgs-org-actions-secrets description: REST surface for orgs-org-actions-secrets. operations: - method: GET name: listorganizationsecrets description: GitHub List Organization Secrets call: organizations-secrets.listorganizationsecrets outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/actions/secrets/{secret-name} name: orgs-org-actions-secrets-secret-name description: REST surface for orgs-org-actions-secrets-secret_name. operations: - method: GET name: getanorganizationsecret description: GitHub Get an Organization Secret call: organizations-secrets.getanorganizationsecret outputParameters: - type: object mapping: $. - method: PUT name: createorupdateanorganizationsecret description: GitHub Create or Update an Organization Secret call: organizations-secrets.createorupdateanorganizationsecret with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteanorganizationsecret description: GitHub Delete an Organization Secret call: organizations-secrets.deleteanorganizationsecret outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/actions/secrets/{secret-name}/repositories name: orgs-org-actions-secrets-secret-name-repositories description: REST surface for orgs-org-actions-secrets-secret_name-repositories. operations: - method: GET name: listselectedrepositoriesforanorganizationsecret description: GitHub List Selected Repositories for an Organization Secret call: organizations-secrets.listselectedrepositoriesforanorganizationsecret outputParameters: - type: object mapping: $. - method: PUT name: setselectedrepositoriesforanorganizationsecret description: GitHub Set Selected Repositories for an Organization Secret call: organizations-secrets.setselectedrepositoriesforanorganizationsecret with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id} name: orgs-org-actions-secrets-secret-name-repositories-repository-id description: REST surface for orgs-org-actions-secrets-secret_name-repositories-repository_id. operations: - method: PUT name: addselectedrepositorytoanorganizationsecret description: GitHub Add Selected Repository to an Organization Secret call: organizations-secrets.addselectedrepositorytoanorganizationsecret with: repository_id: rest.repository_id outputParameters: - type: object mapping: $. - method: DELETE name: removeselectedrepositoryfromanorganizationsecret description: GitHub Remove Selected Repository from an Organization Secret call: organizations-secrets.removeselectedrepositoryfromanorganizationsecret with: repository_id: rest.repository_id outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/dependabot/secrets name: orgs-org-dependabot-secrets description: REST surface for orgs-org-dependabot-secrets. operations: - method: GET name: listorganizationsecrets description: GitHub List Organization Secrets call: organizations-secrets.listorganizationsecrets outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/dependabot/secrets/{secret-name} name: orgs-org-dependabot-secrets-secret-name description: REST surface for orgs-org-dependabot-secrets-secret_name. operations: - method: GET name: getanorganizationsecret description: GitHub Get an Organization Secret call: organizations-secrets.getanorganizationsecret outputParameters: - type: object mapping: $. - method: PUT name: createorupdateanorganizationsecret description: GitHub Create or Update an Organization Secret call: organizations-secrets.createorupdateanorganizationsecret with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteanorganizationsecret description: GitHub Delete an Organization Secret call: organizations-secrets.deleteanorganizationsecret outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories name: orgs-org-dependabot-secrets-secret-name-repositories description: REST surface for orgs-org-dependabot-secrets-secret_name-repositories. operations: - method: GET name: listselectedrepositoriesforanorganizationsecret description: GitHub List Selected Repositories for an Organization Secret call: organizations-secrets.listselectedrepositoriesforanorganizationsecret outputParameters: - type: object mapping: $. - method: PUT name: setselectedrepositoriesforanorganizationsecret description: GitHub Set Selected Repositories for an Organization Secret call: organizations-secrets.setselectedrepositoriesforanorganizationsecret with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id} name: orgs-org-dependabot-secrets-secret-name-repositories-repository-id description: REST surface for orgs-org-dependabot-secrets-secret_name-repositories-repository_id. operations: - method: PUT name: addselectedrepositorytoanorganizationsecret description: GitHub Add Selected Repository to an Organization Secret call: organizations-secrets.addselectedrepositorytoanorganizationsecret with: repository_id: rest.repository_id outputParameters: - type: object mapping: $. - method: DELETE name: removeselectedrepositoryfromanorganizationsecret description: GitHub Remove Selected Repository from an Organization Secret call: organizations-secrets.removeselectedrepositoryfromanorganizationsecret with: repository_id: rest.repository_id outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/secret-scanning/alerts name: orgs-org-secret-scanning-alerts description: REST surface for orgs-org-secret-scanning-alerts. operations: - method: GET name: listsecretscanningalertsforanorganization description: GitHub List Secret Scanning Alerts for an Organization call: organizations-secrets.listsecretscanningalertsforanorganization outputParameters: - type: object mapping: $. - type: mcp namespace: organizations-secrets-mcp port: 9090 transport: http description: MCP adapter for GitHub Org API — Secrets. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-organization-secrets description: GitHub List Organization Secrets hints: readOnly: true destructive: false idempotent: true call: organizations-secrets.listorganizationsecrets outputParameters: - type: object mapping: $. - name: github-get-organization-secret description: GitHub Get an Organization Secret hints: readOnly: true destructive: false idempotent: true call: organizations-secrets.getanorganizationsecret outputParameters: - type: object mapping: $. - name: github-create-update-organization-secret description: GitHub Create or Update an Organization Secret hints: readOnly: false destructive: false idempotent: true call: organizations-secrets.createorupdateanorganizationsecret with: body: tools.body outputParameters: - type: object mapping: $. - name: github-delete-organization-secret description: GitHub Delete an Organization Secret hints: readOnly: false destructive: true idempotent: true call: organizations-secrets.deleteanorganizationsecret outputParameters: - type: object mapping: $. - name: github-list-selected-repositories-organization description: GitHub List Selected Repositories for an Organization Secret hints: readOnly: true destructive: false idempotent: true call: organizations-secrets.listselectedrepositoriesforanorganizationsecret outputParameters: - type: object mapping: $. - name: github-set-selected-repositories-organization description: GitHub Set Selected Repositories for an Organization Secret hints: readOnly: false destructive: false idempotent: true call: organizations-secrets.setselectedrepositoriesforanorganizationsecret with: body: tools.body outputParameters: - type: object mapping: $. - name: github-add-selected-repository-organization description: GitHub Add Selected Repository to an Organization Secret hints: readOnly: false destructive: false idempotent: true call: organizations-secrets.addselectedrepositorytoanorganizationsecret with: repository_id: tools.repository_id outputParameters: - type: object mapping: $. - name: github-remove-selected-repository-organization description: GitHub Remove Selected Repository from an Organization Secret hints: readOnly: false destructive: true idempotent: true call: organizations-secrets.removeselectedrepositoryfromanorganizationsecret with: repository_id: tools.repository_id outputParameters: - type: object mapping: $. - name: github-list-organization-secrets-2 description: GitHub List Organization Secrets hints: readOnly: true destructive: false idempotent: true call: organizations-secrets.listorganizationsecrets outputParameters: - type: object mapping: $. - name: github-get-organization-secret-2 description: GitHub Get an Organization Secret hints: readOnly: true destructive: false idempotent: true call: organizations-secrets.getanorganizationsecret outputParameters: - type: object mapping: $. - name: github-create-update-organization-secret-2 description: GitHub Create or Update an Organization Secret hints: readOnly: false destructive: false idempotent: true call: organizations-secrets.createorupdateanorganizationsecret with: body: tools.body outputParameters: - type: object mapping: $. - name: github-delete-organization-secret-2 description: GitHub Delete an Organization Secret hints: readOnly: false destructive: true idempotent: true call: organizations-secrets.deleteanorganizationsecret outputParameters: - type: object mapping: $. - name: github-list-selected-repositories-organization-2 description: GitHub List Selected Repositories for an Organization Secret hints: readOnly: true destructive: false idempotent: true call: organizations-secrets.listselectedrepositoriesforanorganizationsecret outputParameters: - type: object mapping: $. - name: github-set-selected-repositories-organization-2 description: GitHub Set Selected Repositories for an Organization Secret hints: readOnly: false destructive: false idempotent: true call: organizations-secrets.setselectedrepositoriesforanorganizationsecret with: body: tools.body outputParameters: - type: object mapping: $. - name: github-add-selected-repository-organization-2 description: GitHub Add Selected Repository to an Organization Secret hints: readOnly: false destructive: false idempotent: true call: organizations-secrets.addselectedrepositorytoanorganizationsecret with: repository_id: tools.repository_id outputParameters: - type: object mapping: $. - name: github-remove-selected-repository-organization-2 description: GitHub Remove Selected Repository from an Organization Secret hints: readOnly: false destructive: true idempotent: true call: organizations-secrets.removeselectedrepositoryfromanorganizationsecret with: repository_id: tools.repository_id outputParameters: - type: object mapping: $. - name: github-list-secret-scanning-alerts description: GitHub List Secret Scanning Alerts for an Organization hints: readOnly: true destructive: false idempotent: true call: organizations-secrets.listsecretscanningalertsforanorganization outputParameters: - type: object mapping: $.