naftiko: 1.0.0-alpha2 info: label: GitHub Teams API — Get description: 'GitHub Teams API — Get. 10 operations. Lead operation: GitHub Get Team by Name. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Get created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: teams-get baseUri: '' description: GitHub Teams API — Get business capability. Self-contained, no shared references. resources: - name: orgs-org-teams-team_slug path: /orgs/{org}/teams/{team_slug} operations: - name: getteambyname method: GET description: GitHub Get Team by Name outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-discussions-discussion_number path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} operations: - name: getdiscussion method: GET description: GitHub Get Discussion outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number} operations: - name: getdiscussioncomment method: GET description: GitHub Get Discussion Comment 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: repos-owner-repo-branches-branch-protection-restrictions-teams path: /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams operations: - name: getteamswithaccesstotheprotectedbranch method: GET description: GitHub Get Teams with Access to the Protected Branch outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id path: /teams/{team_id} operations: - name: getteamlegacy method: GET description: GitHub Get Team (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-discussions-discussion_number path: /teams/{team_id}/discussions/{discussion_number} operations: - name: getdiscussionlegacy method: GET description: GitHub Get Discussion (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-discussions-discussion_number-comments-comment_number path: /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} operations: - name: getdiscussioncommentlegacy method: GET description: GitHub Get Discussion Comment (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-members-username path: /teams/{team_id}/members/{username} operations: - name: getteammemberlegacy method: GET description: GitHub Get Team Member (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-memberships-username path: /teams/{team_id}/memberships/{username} operations: - name: getteammembershipforuserlegacy method: GET description: GitHub Get Team Membership for User (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: teams-get-rest port: 8080 description: REST adapter for GitHub Teams API — Get. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/teams/{team-slug} name: orgs-org-teams-team-slug description: REST surface for orgs-org-teams-team_slug. operations: - method: GET name: getteambyname description: GitHub Get Team by Name call: teams-get.getteambyname outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number} name: orgs-org-teams-team-slug-discussions-discussion-number description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number. operations: - method: GET name: getdiscussion description: GitHub Get Discussion call: teams-get.getdiscussion outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number} name: orgs-org-teams-team-slug-discussions-discussion-number-comments-comment-number description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number. operations: - method: GET name: getdiscussioncomment description: GitHub Get Discussion Comment call: teams-get.getdiscussioncomment 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: teams-get.getteammembershipforuser outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams name: repos-owner-repo-branches-branch-protection-restrictions-teams description: REST surface for repos-owner-repo-branches-branch-protection-restrictions-teams. operations: - method: GET name: getteamswithaccesstotheprotectedbranch description: GitHub Get Teams with Access to the Protected Branch call: teams-get.getteamswithaccesstotheprotectedbranch outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id} name: teams-team-id description: REST surface for teams-team_id. operations: - method: GET name: getteamlegacy description: GitHub Get Team (legacy) call: teams-get.getteamlegacy outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/discussions/{discussion-number} name: teams-team-id-discussions-discussion-number description: REST surface for teams-team_id-discussions-discussion_number. operations: - method: GET name: getdiscussionlegacy description: GitHub Get Discussion (legacy) call: teams-get.getdiscussionlegacy outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number} name: teams-team-id-discussions-discussion-number-comments-comment-number description: REST surface for teams-team_id-discussions-discussion_number-comments-comment_number. operations: - method: GET name: getdiscussioncommentlegacy description: GitHub Get Discussion Comment (legacy) call: teams-get.getdiscussioncommentlegacy outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/members/{username} name: teams-team-id-members-username description: REST surface for teams-team_id-members-username. operations: - method: GET name: getteammemberlegacy description: GitHub Get Team Member (legacy) call: teams-get.getteammemberlegacy outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/memberships/{username} name: teams-team-id-memberships-username description: REST surface for teams-team_id-memberships-username. operations: - method: GET name: getteammembershipforuserlegacy description: GitHub Get Team Membership for User (legacy) call: teams-get.getteammembershipforuserlegacy outputParameters: - type: object mapping: $. - type: mcp namespace: teams-get-mcp port: 9090 transport: http description: MCP adapter for GitHub Teams API — Get. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-get-team-name description: GitHub Get Team by Name hints: readOnly: true destructive: false idempotent: true call: teams-get.getteambyname outputParameters: - type: object mapping: $. - name: github-get-discussion description: GitHub Get Discussion hints: readOnly: true destructive: false idempotent: true call: teams-get.getdiscussion outputParameters: - type: object mapping: $. - name: github-get-discussion-comment description: GitHub Get Discussion Comment hints: readOnly: true destructive: false idempotent: true call: teams-get.getdiscussioncomment 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: teams-get.getteammembershipforuser outputParameters: - type: object mapping: $. - name: github-get-teams-access-protected description: GitHub Get Teams with Access to the Protected Branch hints: readOnly: true destructive: false idempotent: true call: teams-get.getteamswithaccesstotheprotectedbranch outputParameters: - type: object mapping: $. - name: github-get-team-legacy description: GitHub Get Team (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-get.getteamlegacy outputParameters: - type: object mapping: $. - name: github-get-discussion-legacy description: GitHub Get Discussion (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-get.getdiscussionlegacy outputParameters: - type: object mapping: $. - name: github-get-discussion-comment-legacy description: GitHub Get Discussion Comment (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-get.getdiscussioncommentlegacy outputParameters: - type: object mapping: $. - name: github-get-team-member-legacy description: GitHub Get Team Member (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-get.getteammemberlegacy outputParameters: - type: object mapping: $. - name: github-get-team-membership-user-2 description: GitHub Get Team Membership for User (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-get.getteammembershipforuserlegacy outputParameters: - type: object mapping: $.