naftiko: 1.0.0-alpha2 info: label: GitHub Org API — Users description: 'GitHub Org API — Users. 11 operations. Lead operation: GitHub List Organization Issues Assigned to the Authenticated User. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Users created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: organizations-users baseUri: '' description: GitHub Org API — Users business capability. Self-contained, no shared references. resources: - name: orgs-org-issues path: /orgs/{org}/issues operations: - name: listorganizationissuesassignedtotheauthenticateduser method: GET description: GitHub List Organization Issues Assigned to the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: filter in: query type: string description: Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning y - name: state in: query type: string description: Indicates the state of the issues to return. - name: sort in: query type: string description: What to sort results by. - name: orgs-org-members-username path: /orgs/{org}/members/{username} operations: - name: checkorganizationmembershipforuser method: GET description: GitHub Check Organization Membership for User outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-memberships-username path: /orgs/{org}/memberships/{username} operations: - name: getorganizationmembershipforuser method: GET description: GitHub Get Organization Membership for User outputRawFormat: json outputParameters: - name: result type: object value: $. - name: setorganizationmembershipforuser method: PUT description: GitHub Set Organization Membership for User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: removeorganizationmembershipforuser method: DELETE description: GitHub Remove Organization Membership for User outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-public_members-username path: /orgs/{org}/public_members/{username} operations: - name: checkpublicorganizationmembershipforuser method: GET description: GitHub Check Public Organization Membership for User outputRawFormat: json outputParameters: - name: result type: object value: $. - name: setpublicorganizationmembershipfortheauthenticateduser method: PUT description: GitHub Set Public Organization Membership for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. - name: removepublicorganizationmembershipfortheauthenticateduser method: DELETE description: GitHub Remove Public Organization Membership for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-memberships-username path: /orgs/{org}/teams/{team_slug}/memberships/{username} operations: - name: getteammembershipforuser method: GET description: GitHub Get Team Membership for User outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addorupdateteammembershipforuser method: PUT description: GitHub Add or Update Team Membership for User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: removeteammembershipforuser method: DELETE description: GitHub Remove Team Membership for User outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: organizations-users-rest port: 8080 description: REST adapter for GitHub Org API — Users. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/issues name: orgs-org-issues description: REST surface for orgs-org-issues. operations: - method: GET name: listorganizationissuesassignedtotheauthenticateduser description: GitHub List Organization Issues Assigned to the Authenticated User call: organizations-users.listorganizationissuesassignedtotheauthenticateduser with: filter: rest.filter state: rest.state sort: rest.sort outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/members/{username} name: orgs-org-members-username description: REST surface for orgs-org-members-username. operations: - method: GET name: checkorganizationmembershipforuser description: GitHub Check Organization Membership for User call: organizations-users.checkorganizationmembershipforuser outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/memberships/{username} name: orgs-org-memberships-username description: REST surface for orgs-org-memberships-username. operations: - method: GET name: getorganizationmembershipforuser description: GitHub Get Organization Membership for User call: organizations-users.getorganizationmembershipforuser outputParameters: - type: object mapping: $. - method: PUT name: setorganizationmembershipforuser description: GitHub Set Organization Membership for User call: organizations-users.setorganizationmembershipforuser with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removeorganizationmembershipforuser description: GitHub Remove Organization Membership for User call: organizations-users.removeorganizationmembershipforuser outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/public-members/{username} name: orgs-org-public-members-username description: REST surface for orgs-org-public_members-username. operations: - method: GET name: checkpublicorganizationmembershipforuser description: GitHub Check Public Organization Membership for User call: organizations-users.checkpublicorganizationmembershipforuser outputParameters: - type: object mapping: $. - method: PUT name: setpublicorganizationmembershipfortheauthenticateduser description: GitHub Set Public Organization Membership for the Authenticated User call: organizations-users.setpublicorganizationmembershipfortheauthenticateduser outputParameters: - type: object mapping: $. - method: DELETE name: removepublicorganizationmembershipfortheauthenticateduser description: GitHub Remove Public Organization Membership for the Authenticated User call: organizations-users.removepublicorganizationmembershipfortheauthenticateduser outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/memberships/{username} name: orgs-org-teams-team-slug-memberships-username description: REST surface for orgs-org-teams-team_slug-memberships-username. operations: - method: GET name: getteammembershipforuser description: GitHub Get Team Membership for User call: organizations-users.getteammembershipforuser outputParameters: - type: object mapping: $. - method: PUT name: addorupdateteammembershipforuser description: GitHub Add or Update Team Membership for User call: organizations-users.addorupdateteammembershipforuser with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removeteammembershipforuser description: GitHub Remove Team Membership for User call: organizations-users.removeteammembershipforuser outputParameters: - type: object mapping: $. - type: mcp namespace: organizations-users-mcp port: 9090 transport: http description: MCP adapter for GitHub Org API — Users. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-organization-issues-assigned description: GitHub List Organization Issues Assigned to the Authenticated User hints: readOnly: true destructive: false idempotent: true call: organizations-users.listorganizationissuesassignedtotheauthenticateduser with: filter: tools.filter state: tools.state sort: tools.sort outputParameters: - type: object mapping: $. - name: github-check-organization-membership-user description: GitHub Check Organization Membership for User hints: readOnly: true destructive: false idempotent: true call: organizations-users.checkorganizationmembershipforuser outputParameters: - type: object mapping: $. - name: github-get-organization-membership-user description: GitHub Get Organization Membership for User hints: readOnly: true destructive: false idempotent: true call: organizations-users.getorganizationmembershipforuser outputParameters: - type: object mapping: $. - name: github-set-organization-membership-user description: GitHub Set Organization Membership for User hints: readOnly: false destructive: false idempotent: true call: organizations-users.setorganizationmembershipforuser with: body: tools.body outputParameters: - type: object mapping: $. - name: github-remove-organization-membership-user description: GitHub Remove Organization Membership for User hints: readOnly: false destructive: true idempotent: true call: organizations-users.removeorganizationmembershipforuser outputParameters: - type: object mapping: $. - name: github-check-public-organization-membership description: GitHub Check Public Organization Membership for User hints: readOnly: true destructive: false idempotent: true call: organizations-users.checkpublicorganizationmembershipforuser outputParameters: - type: object mapping: $. - name: github-set-public-organization-membership description: GitHub Set Public Organization Membership for the Authenticated User hints: readOnly: false destructive: false idempotent: true call: organizations-users.setpublicorganizationmembershipfortheauthenticateduser outputParameters: - type: object mapping: $. - name: github-remove-public-organization-membership description: GitHub Remove Public Organization Membership for the Authenticated User hints: readOnly: false destructive: true idempotent: true call: organizations-users.removepublicorganizationmembershipfortheauthenticateduser outputParameters: - type: object mapping: $. - name: github-get-team-membership-user description: GitHub Get Team Membership for User hints: readOnly: true destructive: false idempotent: true call: organizations-users.getteammembershipforuser outputParameters: - type: object mapping: $. - name: github-add-update-team-membership description: GitHub Add or Update Team Membership for User hints: readOnly: false destructive: false idempotent: true call: organizations-users.addorupdateteammembershipforuser with: body: tools.body outputParameters: - type: object mapping: $. - name: github-remove-team-membership-user description: GitHub Remove Team Membership for User hints: readOnly: false destructive: true idempotent: true call: organizations-users.removeteammembershipforuser outputParameters: - type: object mapping: $.