naftiko: 1.0.0-alpha2 info: label: GitHub Org API — Roles description: 'GitHub Org API — Roles. 2 operations. Lead operation: GitHub Deprecated - List Custom Repository Roles in an Organization. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Roles created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: organizations-roles baseUri: '' description: GitHub Org API — Roles business capability. Self-contained, no shared references. resources: - name: organizations-organization_id-custom_roles path: /organizations/{organization_id}/custom_roles operations: - name: deprecatedlistcustomrepositoryrolesinanorganization method: GET description: GitHub Deprecated - List Custom Repository Roles in an Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: organization_id in: path type: string description: The unique identifier of the organization. required: true - name: orgs-org-custom-repository-roles path: /orgs/{org}/custom-repository-roles operations: - name: listcustomrepositoryrolesinanorganization method: GET description: GitHub List Custom Repository Roles in an Organization outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: organizations-roles-rest port: 8080 description: REST adapter for GitHub Org API — Roles. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/organizations/{organization-id}/custom-roles name: organizations-organization-id-custom-roles description: REST surface for organizations-organization_id-custom_roles. operations: - method: GET name: deprecatedlistcustomrepositoryrolesinanorganization description: GitHub Deprecated - List Custom Repository Roles in an Organization call: organizations-roles.deprecatedlistcustomrepositoryrolesinanorganization with: organization_id: rest.organization_id outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/custom-repository-roles name: orgs-org-custom-repository-roles description: REST surface for orgs-org-custom-repository-roles. operations: - method: GET name: listcustomrepositoryrolesinanorganization description: GitHub List Custom Repository Roles in an Organization call: organizations-roles.listcustomrepositoryrolesinanorganization outputParameters: - type: object mapping: $. - type: mcp namespace: organizations-roles-mcp port: 9090 transport: http description: MCP adapter for GitHub Org API — Roles. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-deprecated-list-custom-repository description: GitHub Deprecated - List Custom Repository Roles in an Organization hints: readOnly: true destructive: false idempotent: true call: organizations-roles.deprecatedlistcustomrepositoryrolesinanorganization with: organization_id: tools.organization_id outputParameters: - type: object mapping: $. - name: github-list-custom-repository-roles description: GitHub List Custom Repository Roles in an Organization hints: readOnly: true destructive: false idempotent: true call: organizations-roles.listcustomrepositoryrolesinanorganization outputParameters: - type: object mapping: $.