naftiko: 1.0.0-alpha2 info: label: GitHub Org API — External description: 'GitHub Org API — External. 5 operations. Lead operation: GitHub Get an External Group. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - External created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: organizations-external baseUri: '' description: GitHub Org API — External business capability. Self-contained, no shared references. resources: - name: orgs-org-external-group-group_id path: /orgs/{org}/external-group/{group_id} operations: - name: getanexternalgroup method: GET description: GitHub Get an External Group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-external-groups path: /orgs/{org}/external-groups operations: - name: listexternalgroupsinanorganization method: GET description: GitHub List External Groups in an Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: page in: query type: integer description: Page token - name: display_name in: query type: string description: Limits the list to groups containing the text in the group name - name: orgs-org-teams-team_slug-external-groups path: /orgs/{org}/teams/{team_slug}/external-groups operations: - name: listconnectionbetweenanexternalgroupandteam method: GET description: GitHub List Connection Between an External Group and Team outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatetheconnectionbetweenanexternalgroupandteam method: PATCH description: GitHub Update the Connection Between an External Group and Team outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: removetheconnectionbetweenanexternalgroupandteam method: DELETE description: GitHub Remove the Connection Between an External Group and Team outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: organizations-external-rest port: 8080 description: REST adapter for GitHub Org API — External. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/external-group/{group-id} name: orgs-org-external-group-group-id description: REST surface for orgs-org-external-group-group_id. operations: - method: GET name: getanexternalgroup description: GitHub Get an External Group call: organizations-external.getanexternalgroup outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/external-groups name: orgs-org-external-groups description: REST surface for orgs-org-external-groups. operations: - method: GET name: listexternalgroupsinanorganization description: GitHub List External Groups in an Organization call: organizations-external.listexternalgroupsinanorganization with: page: rest.page display_name: rest.display_name outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/external-groups name: orgs-org-teams-team-slug-external-groups description: REST surface for orgs-org-teams-team_slug-external-groups. operations: - method: GET name: listconnectionbetweenanexternalgroupandteam description: GitHub List Connection Between an External Group and Team call: organizations-external.listconnectionbetweenanexternalgroupandteam outputParameters: - type: object mapping: $. - method: PATCH name: updatetheconnectionbetweenanexternalgroupandteam description: GitHub Update the Connection Between an External Group and Team call: organizations-external.updatetheconnectionbetweenanexternalgroupandteam with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removetheconnectionbetweenanexternalgroupandteam description: GitHub Remove the Connection Between an External Group and Team call: organizations-external.removetheconnectionbetweenanexternalgroupandteam outputParameters: - type: object mapping: $. - type: mcp namespace: organizations-external-mcp port: 9090 transport: http description: MCP adapter for GitHub Org API — External. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-get-external-group description: GitHub Get an External Group hints: readOnly: true destructive: false idempotent: true call: organizations-external.getanexternalgroup outputParameters: - type: object mapping: $. - name: github-list-external-groups-organization description: GitHub List External Groups in an Organization hints: readOnly: true destructive: false idempotent: true call: organizations-external.listexternalgroupsinanorganization with: page: tools.page display_name: tools.display_name outputParameters: - type: object mapping: $. - name: github-list-connection-between-external description: GitHub List Connection Between an External Group and Team hints: readOnly: true destructive: false idempotent: true call: organizations-external.listconnectionbetweenanexternalgroupandteam outputParameters: - type: object mapping: $. - name: github-update-connection-between-external description: GitHub Update the Connection Between an External Group and Team hints: readOnly: false destructive: false idempotent: true call: organizations-external.updatetheconnectionbetweenanexternalgroupandteam with: body: tools.body outputParameters: - type: object mapping: $. - name: github-remove-connection-between-external description: GitHub Remove the Connection Between an External Group and Team hints: readOnly: false destructive: true idempotent: true call: organizations-external.removetheconnectionbetweenanexternalgroupandteam outputParameters: - type: object mapping: $.