naftiko: 1.0.0-alpha2 info: label: GitHub Teams API — Lists description: 'GitHub Teams API — Lists. 20 operations. Lead operation: GitHub List Teams. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Lists created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: teams-lists baseUri: '' description: GitHub Teams API — Lists business capability. Self-contained, no shared references. resources: - name: orgs-org-teams path: /orgs/{org}/teams operations: - name: listteams method: GET description: GitHub List Teams outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-discussions path: /orgs/{org}/teams/{team_slug}/discussions operations: - name: listdiscussions method: GET description: GitHub List Discussions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pinned in: query type: string description: Pinned discussions only filter - name: orgs-org-teams-team_slug-discussions-discussion_number-comments path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments operations: - name: listdiscussioncomments method: GET description: GitHub List Discussion Comments outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number-r path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions operations: - name: listreactionsforteamdiscussioncomment method: GET description: GitHub List Reactions for Team Discussion Comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: content in: query type: string description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.9/rest/reactions/reactions#about-reactions). Omit this parameter to list all reacti - name: orgs-org-teams-team_slug-discussions-discussion_number-reactions path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions operations: - name: listreactionsforteamdiscussion method: GET description: GitHub List Reactions for Team Discussion outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: content in: query type: string description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.9/rest/reactions/reactions#about-reactions). Omit this parameter to list all reacti - 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: orgs-org-teams-team_slug-members path: /orgs/{org}/teams/{team_slug}/members operations: - name: listteammembers method: GET description: GitHub List Team Members outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: role in: query type: string description: Filters members returned by their role in the team. - name: orgs-org-teams-team_slug-projects path: /orgs/{org}/teams/{team_slug}/projects operations: - name: listteamprojects method: GET description: GitHub List Team Projects outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-repos path: /orgs/{org}/teams/{team_slug}/repos operations: - name: listteamrepositories method: GET description: GitHub List Team Repositories outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-teams path: /orgs/{org}/teams/{team_slug}/teams operations: - name: listchildteams method: GET description: GitHub List Child Teams outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repos-owner-repo-teams path: /repos/{owner}/{repo}/teams operations: - name: listrepositoryteams method: GET description: GitHub List Repository Teams outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-discussions path: /teams/{team_id}/discussions operations: - name: listdiscussionslegacy method: GET description: GitHub List Discussions (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-discussions-discussion_number-comments path: /teams/{team_id}/discussions/{discussion_number}/comments operations: - name: listdiscussioncommentslegacy method: GET description: GitHub List Discussion Comments (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-discussions-discussion_number-comments-comment_number-reactions path: /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions operations: - name: listreactionsforteamdiscussioncommentlegacy method: GET description: GitHub List Reactions for Team Discussion Comment (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: content in: query type: string description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.9/rest/reactions/reactions#about-reactions). Omit this parameter to list all reacti - name: teams-team_id-discussions-discussion_number-reactions path: /teams/{team_id}/discussions/{discussion_number}/reactions operations: - name: listreactionsforteamdiscussionlegacy method: GET description: GitHub List Reactions for Team Discussion (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: content in: query type: string description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.9/rest/reactions/reactions#about-reactions). Omit this parameter to list all reacti - name: teams-team_id-members path: /teams/{team_id}/members operations: - name: listteammemberslegacy method: GET description: GitHub List Team Members (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: role in: query type: string description: Filters members returned by their role in the team. - name: teams-team_id-projects path: /teams/{team_id}/projects operations: - name: listteamprojectslegacy method: GET description: GitHub List Team Projects (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-repos path: /teams/{team_id}/repos operations: - name: listteamrepositorieslegacy method: GET description: GitHub List Team Repositories (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-teams path: /teams/{team_id}/teams operations: - name: listchildteamslegacy method: GET description: GitHub List Child Teams (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: user-teams path: /user/teams operations: - name: listteamsfortheauthenticateduser method: GET description: GitHub List Teams for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: teams-lists-rest port: 8080 description: REST adapter for GitHub Teams API — Lists. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/teams name: orgs-org-teams description: REST surface for orgs-org-teams. operations: - method: GET name: listteams description: GitHub List Teams call: teams-lists.listteams outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/discussions name: orgs-org-teams-team-slug-discussions description: REST surface for orgs-org-teams-team_slug-discussions. operations: - method: GET name: listdiscussions description: GitHub List Discussions call: teams-lists.listdiscussions with: pinned: rest.pinned outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments name: orgs-org-teams-team-slug-discussions-discussion-number-comments description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-comments. operations: - method: GET name: listdiscussioncomments description: GitHub List Discussion Comments call: teams-lists.listdiscussioncomments outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}/reactions name: orgs-org-teams-team-slug-discussions-discussion-number-comments-comment-number-r description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number-r. operations: - method: GET name: listreactionsforteamdiscussioncomment description: GitHub List Reactions for Team Discussion Comment call: teams-lists.listreactionsforteamdiscussioncomment with: content: rest.content outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/reactions name: orgs-org-teams-team-slug-discussions-discussion-number-reactions description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-reactions. operations: - method: GET name: listreactionsforteamdiscussion description: GitHub List Reactions for Team Discussion call: teams-lists.listreactionsforteamdiscussion with: content: rest.content 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: teams-lists.listconnectionbetweenanexternalgroupandteam outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/members name: orgs-org-teams-team-slug-members description: REST surface for orgs-org-teams-team_slug-members. operations: - method: GET name: listteammembers description: GitHub List Team Members call: teams-lists.listteammembers with: role: rest.role outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/projects name: orgs-org-teams-team-slug-projects description: REST surface for orgs-org-teams-team_slug-projects. operations: - method: GET name: listteamprojects description: GitHub List Team Projects call: teams-lists.listteamprojects outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/repos name: orgs-org-teams-team-slug-repos description: REST surface for orgs-org-teams-team_slug-repos. operations: - method: GET name: listteamrepositories description: GitHub List Team Repositories call: teams-lists.listteamrepositories outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/teams name: orgs-org-teams-team-slug-teams description: REST surface for orgs-org-teams-team_slug-teams. operations: - method: GET name: listchildteams description: GitHub List Child Teams call: teams-lists.listchildteams outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/teams name: repos-owner-repo-teams description: REST surface for repos-owner-repo-teams. operations: - method: GET name: listrepositoryteams description: GitHub List Repository Teams call: teams-lists.listrepositoryteams outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/discussions name: teams-team-id-discussions description: REST surface for teams-team_id-discussions. operations: - method: GET name: listdiscussionslegacy description: GitHub List Discussions (legacy) call: teams-lists.listdiscussionslegacy outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/discussions/{discussion-number}/comments name: teams-team-id-discussions-discussion-number-comments description: REST surface for teams-team_id-discussions-discussion_number-comments. operations: - method: GET name: listdiscussioncommentslegacy description: GitHub List Discussion Comments (legacy) call: teams-lists.listdiscussioncommentslegacy outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}/reactions name: teams-team-id-discussions-discussion-number-comments-comment-number-reactions description: REST surface for teams-team_id-discussions-discussion_number-comments-comment_number-reactions. operations: - method: GET name: listreactionsforteamdiscussioncommentlegacy description: GitHub List Reactions for Team Discussion Comment (legacy) call: teams-lists.listreactionsforteamdiscussioncommentlegacy with: content: rest.content outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/discussions/{discussion-number}/reactions name: teams-team-id-discussions-discussion-number-reactions description: REST surface for teams-team_id-discussions-discussion_number-reactions. operations: - method: GET name: listreactionsforteamdiscussionlegacy description: GitHub List Reactions for Team Discussion (legacy) call: teams-lists.listreactionsforteamdiscussionlegacy with: content: rest.content outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/members name: teams-team-id-members description: REST surface for teams-team_id-members. operations: - method: GET name: listteammemberslegacy description: GitHub List Team Members (legacy) call: teams-lists.listteammemberslegacy with: role: rest.role outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/projects name: teams-team-id-projects description: REST surface for teams-team_id-projects. operations: - method: GET name: listteamprojectslegacy description: GitHub List Team Projects (legacy) call: teams-lists.listteamprojectslegacy outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/repos name: teams-team-id-repos description: REST surface for teams-team_id-repos. operations: - method: GET name: listteamrepositorieslegacy description: GitHub List Team Repositories (legacy) call: teams-lists.listteamrepositorieslegacy outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/teams name: teams-team-id-teams description: REST surface for teams-team_id-teams. operations: - method: GET name: listchildteamslegacy description: GitHub List Child Teams (legacy) call: teams-lists.listchildteamslegacy outputParameters: - type: object mapping: $. - path: /v1/user/teams name: user-teams description: REST surface for user-teams. operations: - method: GET name: listteamsfortheauthenticateduser description: GitHub List Teams for the Authenticated User call: teams-lists.listteamsfortheauthenticateduser outputParameters: - type: object mapping: $. - type: mcp namespace: teams-lists-mcp port: 9090 transport: http description: MCP adapter for GitHub Teams API — Lists. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-teams description: GitHub List Teams hints: readOnly: true destructive: false idempotent: true call: teams-lists.listteams outputParameters: - type: object mapping: $. - name: github-list-discussions description: GitHub List Discussions hints: readOnly: true destructive: false idempotent: true call: teams-lists.listdiscussions with: pinned: tools.pinned outputParameters: - type: object mapping: $. - name: github-list-discussion-comments description: GitHub List Discussion Comments hints: readOnly: true destructive: false idempotent: true call: teams-lists.listdiscussioncomments outputParameters: - type: object mapping: $. - name: github-list-reactions-team-discussion description: GitHub List Reactions for Team Discussion Comment hints: readOnly: true destructive: false idempotent: true call: teams-lists.listreactionsforteamdiscussioncomment with: content: tools.content outputParameters: - type: object mapping: $. - name: github-list-reactions-team-discussion-2 description: GitHub List Reactions for Team Discussion hints: readOnly: true destructive: false idempotent: true call: teams-lists.listreactionsforteamdiscussion with: content: tools.content 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: teams-lists.listconnectionbetweenanexternalgroupandteam outputParameters: - type: object mapping: $. - name: github-list-team-members description: GitHub List Team Members hints: readOnly: true destructive: false idempotent: true call: teams-lists.listteammembers with: role: tools.role outputParameters: - type: object mapping: $. - name: github-list-team-projects description: GitHub List Team Projects hints: readOnly: true destructive: false idempotent: true call: teams-lists.listteamprojects outputParameters: - type: object mapping: $. - name: github-list-team-repositories description: GitHub List Team Repositories hints: readOnly: true destructive: false idempotent: true call: teams-lists.listteamrepositories outputParameters: - type: object mapping: $. - name: github-list-child-teams description: GitHub List Child Teams hints: readOnly: true destructive: false idempotent: true call: teams-lists.listchildteams outputParameters: - type: object mapping: $. - name: github-list-repository-teams description: GitHub List Repository Teams hints: readOnly: true destructive: false idempotent: true call: teams-lists.listrepositoryteams outputParameters: - type: object mapping: $. - name: github-list-discussions-legacy description: GitHub List Discussions (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-lists.listdiscussionslegacy outputParameters: - type: object mapping: $. - name: github-list-discussion-comments-legacy description: GitHub List Discussion Comments (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-lists.listdiscussioncommentslegacy outputParameters: - type: object mapping: $. - name: github-list-reactions-team-discussion-3 description: GitHub List Reactions for Team Discussion Comment (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-lists.listreactionsforteamdiscussioncommentlegacy with: content: tools.content outputParameters: - type: object mapping: $. - name: github-list-reactions-team-discussion-4 description: GitHub List Reactions for Team Discussion (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-lists.listreactionsforteamdiscussionlegacy with: content: tools.content outputParameters: - type: object mapping: $. - name: github-list-team-members-legacy description: GitHub List Team Members (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-lists.listteammemberslegacy with: role: tools.role outputParameters: - type: object mapping: $. - name: github-list-team-projects-legacy description: GitHub List Team Projects (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-lists.listteamprojectslegacy outputParameters: - type: object mapping: $. - name: github-list-team-repositories-legacy description: GitHub List Team Repositories (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-lists.listteamrepositorieslegacy outputParameters: - type: object mapping: $. - name: github-list-child-teams-legacy description: GitHub List Child Teams (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-lists.listchildteamslegacy outputParameters: - type: object mapping: $. - name: github-list-teams-authenticated-user description: GitHub List Teams for the Authenticated User hints: readOnly: true destructive: false idempotent: true call: teams-lists.listteamsfortheauthenticateduser outputParameters: - type: object mapping: $.