GitHub · Capability

GitHub Teams API — Legacy

GitHub Teams API — Legacy. 33 operations. Lead operation: GitHub Get Team (legacy). Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubLegacy

What You Can Do

GET
Getteamlegacy — GitHub Get Team (legacy)
/v1/teams/{team-id}
PATCH
Updateteamlegacy — GitHub Update Team (legacy)
/v1/teams/{team-id}
DELETE
Deleteteamlegacy — GitHub Delete Team (legacy)
/v1/teams/{team-id}
GET
Listdiscussionslegacy — GitHub List Discussions (legacy)
/v1/teams/{team-id}/discussions
POST
Creatediscussionlegacy — GitHub Create Discussion (legacy)
/v1/teams/{team-id}/discussions
GET
Getdiscussionlegacy — GitHub Get Discussion (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}
PATCH
Updatediscussionlegacy — GitHub Update Discussion (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}
DELETE
Deletediscussionlegacy — GitHub Delete Discussion (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}
GET
Listdiscussioncommentslegacy — GitHub List Discussion Comments (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments
POST
Creatediscussioncommentlegacy — GitHub Create Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments
GET
Getdiscussioncommentlegacy — GitHub Get Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
PATCH
Updatediscussioncommentlegacy — GitHub Update Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
DELETE
Deletediscussioncommentlegacy — GitHub Delete Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
GET
Listreactionsforteamdiscussioncommentlegacy — GitHub List Reactions for Team Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}/reactions
POST
Createreactionforteamdiscussioncommentlegacy — GitHub Create Reaction for Team Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}/reactions
GET
Listreactionsforteamdiscussionlegacy — GitHub List Reactions for Team Discussion (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/reactions
POST
Createreactionforteamdiscussionlegacy — GitHub Create Reaction for Team Discussion (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/reactions
GET
Listteammemberslegacy — GitHub List Team Members (legacy)
/v1/teams/{team-id}/members
GET
Getteammemberlegacy — GitHub Get Team Member (legacy)
/v1/teams/{team-id}/members/{username}
PUT
Addteammemberlegacy — GitHub Add Team Member (legacy)
/v1/teams/{team-id}/members/{username}
DELETE
Removeteammemberlegacy — GitHub Remove Team Member (legacy)
/v1/teams/{team-id}/members/{username}
GET
Getteammembershipforuserlegacy — GitHub Get Team Membership for User (legacy)
/v1/teams/{team-id}/memberships/{username}
PUT
Addorupdateteammembershipforuserlegacy — GitHub Add or Update Team Membership for User (legacy)
/v1/teams/{team-id}/memberships/{username}
DELETE
Removeteammembershipforuserlegacy — GitHub Remove Team Membership for User (legacy)
/v1/teams/{team-id}/memberships/{username}
GET
Listteamprojectslegacy — GitHub List Team Projects (legacy)
/v1/teams/{team-id}/projects
GET
Checkteampermissionsforprojectlegacy — GitHub Check Team Permissions for Project (legacy)
/v1/teams/{team-id}/projects/{project-id}
PUT
Addorupdateteamprojectpermissionslegacy — GitHub Add or Update Team Project Permissions (legacy)
/v1/teams/{team-id}/projects/{project-id}
DELETE
Removeprojectfromteamlegacy — GitHub Remove Project from Team (legacy)
/v1/teams/{team-id}/projects/{project-id}
GET
Listteamrepositorieslegacy — GitHub List Team Repositories (legacy)
/v1/teams/{team-id}/repos
GET
Checkteampermissionsforrepositorylegacy — GitHub Check Team Permissions for Repository (legacy)
/v1/teams/{team-id}/repos/{owner}/{repo}
PUT
Addorupdateteamrepositorypermissionslegacy — GitHub Add or Update Team Repository Permissions (legacy)
/v1/teams/{team-id}/repos/{owner}/{repo}
DELETE
Removerepositoryfromteamlegacy — GitHub Remove Repository from Team (legacy)
/v1/teams/{team-id}/repos/{owner}/{repo}
GET
Listchildteamslegacy — GitHub List Child Teams (legacy)
/v1/teams/{team-id}/teams

MCP Tools

github-get-team-legacy

GitHub Get Team (legacy)

read-only idempotent
github-update-team-legacy

GitHub Update Team (legacy)

idempotent
github-delete-team-legacy

GitHub Delete Team (legacy)

idempotent
github-list-discussions-legacy

GitHub List Discussions (legacy)

read-only idempotent
github-create-discussion-legacy

GitHub Create Discussion (legacy)

github-get-discussion-legacy

GitHub Get Discussion (legacy)

read-only idempotent
github-update-discussion-legacy

GitHub Update Discussion (legacy)

idempotent
github-delete-discussion-legacy

GitHub Delete Discussion (legacy)

idempotent
github-list-discussion-comments-legacy

GitHub List Discussion Comments (legacy)

read-only idempotent
github-create-discussion-comment-legacy

GitHub Create Discussion Comment (legacy)

github-get-discussion-comment-legacy

GitHub Get Discussion Comment (legacy)

read-only idempotent
github-update-discussion-comment-legacy

GitHub Update Discussion Comment (legacy)

idempotent
github-delete-discussion-comment-legacy

GitHub Delete Discussion Comment (legacy)

idempotent
github-list-reactions-team-discussion

GitHub List Reactions for Team Discussion Comment (legacy)

read-only idempotent
github-create-reaction-team-discussion

GitHub Create Reaction for Team Discussion Comment (legacy)

github-list-reactions-team-discussion-2

GitHub List Reactions for Team Discussion (legacy)

read-only idempotent
github-create-reaction-team-discussion-2

GitHub Create Reaction for Team Discussion (legacy)

github-list-team-members-legacy

GitHub List Team Members (legacy)

read-only idempotent
github-get-team-member-legacy

GitHub Get Team Member (legacy)

read-only idempotent
github-add-team-member-legacy

GitHub Add Team Member (legacy)

idempotent
github-remove-team-member-legacy

GitHub Remove Team Member (legacy)

idempotent
github-get-team-membership-user

GitHub Get Team Membership for User (legacy)

read-only idempotent
github-add-update-team-membership

GitHub Add or Update Team Membership for User (legacy)

idempotent
github-remove-team-membership-user

GitHub Remove Team Membership for User (legacy)

idempotent
github-list-team-projects-legacy

GitHub List Team Projects (legacy)

read-only idempotent
github-check-team-permissions-project

GitHub Check Team Permissions for Project (legacy)

read-only idempotent
github-add-update-team-project

GitHub Add or Update Team Project Permissions (legacy)

idempotent
github-remove-project-team-legacy

GitHub Remove Project from Team (legacy)

idempotent
github-list-team-repositories-legacy

GitHub List Team Repositories (legacy)

read-only idempotent
github-check-team-permissions-repository

GitHub Check Team Permissions for Repository (legacy)

read-only idempotent
github-add-update-team-repository

GitHub Add or Update Team Repository Permissions (legacy)

idempotent
github-remove-repository-team-legacy

GitHub Remove Repository from Team (legacy)

idempotent
github-list-child-teams-legacy

GitHub List Child Teams (legacy)

read-only idempotent

Capability Spec

teams-legacy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Teams API — Legacy
  description: 'GitHub Teams API — Legacy. 33 operations. Lead operation: GitHub Get Team (legacy). Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Legacy
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: teams-legacy
    baseUri: ''
    description: GitHub Teams API — Legacy business capability. Self-contained, no shared references.
    resources:
    - 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: updateteamlegacy
        method: PATCH
        description: GitHub Update Team (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteteamlegacy
        method: DELETE
        description: GitHub Delete Team (legacy)
        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: creatediscussionlegacy
        method: POST
        description: GitHub Create Discussion (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - 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: updatediscussionlegacy
        method: PATCH
        description: GitHub Update Discussion (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deletediscussionlegacy
        method: DELETE
        description: GitHub Delete Discussion (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: creatediscussioncommentlegacy
        method: POST
        description: GitHub Create Discussion Comment (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - 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: updatediscussioncommentlegacy
        method: PATCH
        description: GitHub Update Discussion Comment (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletediscussioncommentlegacy
        method: DELETE
        description: GitHub Delete Discussion Comment (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/[email protected]/rest/reactions/reactions#about-reactions).
            Omit this parameter to list all reacti
      - name: createreactionforteamdiscussioncommentlegacy
        method: POST
        description: GitHub Create Reaction for Team Discussion Comment (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - 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/[email protected]/rest/reactions/reactions#about-reactions).
            Omit this parameter to list all reacti
      - name: createreactionforteamdiscussionlegacy
        method: POST
        description: GitHub Create Reaction for Team Discussion (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - 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-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: addteammemberlegacy
        method: PUT
        description: GitHub Add Team Member (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: removeteammemberlegacy
        method: DELETE
        description: GitHub Remove 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: $.
      - name: addorupdateteammembershipforuserlegacy
        method: PUT
        description: GitHub Add or Update Team Membership for User (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: removeteammembershipforuserlegacy
        method: DELETE
        description: GitHub Remove Team Membership for User (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - 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-projects-project_id
      path: /teams/{team_id}/projects/{project_id}
      operations:
      - name: checkteampermissionsforprojectlegacy
        method: GET
        description: GitHub Check Team Permissions for Project (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addorupdateteamprojectpermissionslegacy
        method: PUT
        description: GitHub Add or Update Team Project Permissions (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: removeprojectfromteamlegacy
        method: DELETE
        description: GitHub Remove Project from Team (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-repos-owner-repo
      path: /teams/{team_id}/repos/{owner}/{repo}
      operations:
      - name: checkteampermissionsforrepositorylegacy
        method: GET
        description: GitHub Check Team Permissions for Repository (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addorupdateteamrepositorypermissionslegacy
        method: PUT
        description: GitHub Add or Update Team Repository Permissions (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: removerepositoryfromteamlegacy
        method: DELETE
        description: GitHub Remove Repository from Team (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: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: teams-legacy-rest
    port: 8080
    description: REST adapter for GitHub Teams API — Legacy. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - 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-legacy.getteamlegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateteamlegacy
        description: GitHub Update Team (legacy)
        call: teams-legacy.updateteamlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteteamlegacy
        description: GitHub Delete Team (legacy)
        call: teams-legacy.deleteteamlegacy
        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-legacy.listdiscussionslegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: creatediscussionlegacy
        description: GitHub Create Discussion (legacy)
        call: teams-legacy.creatediscussionlegacy
        with:
          body: rest.body
        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-legacy.getdiscussionlegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatediscussionlegacy
        description: GitHub Update Discussion (legacy)
        call: teams-legacy.updatediscussionlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletediscussionlegacy
        description: GitHub Delete Discussion (legacy)
        call: teams-legacy.deletediscussionlegacy
        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-legacy.listdiscussioncommentslegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: creatediscussioncommentlegacy
        description: GitHub Create Discussion Comment (legacy)
        call: teams-legacy.creatediscussioncommentlegacy
        with:
          body: rest.body
        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-legacy.getdiscussioncommentlegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatediscussioncommentlegacy
        description: GitHub Update Discussion Comment (legacy)
        call: teams-legacy.updatediscussioncommentlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletediscussioncommentlegacy
        description: GitHub Delete Discussion Comment (legacy)
        call: teams-legacy.deletediscussioncommentlegacy
        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-legacy.listreactionsforteamdiscussioncommentlegacy
        with:
          content: rest.content
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createreactionforteamdiscussioncommentlegacy
        description: GitHub Create Reaction for Team Discussion Comment (legacy)
        call: teams-legacy.createreactionforteamdiscussioncommentlegacy
        with:
          body: rest.body
        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-legacy.listreactionsforteamdiscussionlegacy
        with:
          content: rest.content
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createreactionforteamdiscussionlegacy
        description: GitHub Create Reaction for Team Discussion (legacy)
        call: teams-legacy.createreactionforteamdiscussionlegacy
        with:
          body: rest.body
        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-legacy.listteammemberslegacy
        with:
          role: rest.role
        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-legacy.getteammemberlegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: addteammemberlegacy
        description: GitHub Add Team Member (legacy)
        call: teams-legacy.addteammemberlegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeteammemberlegacy
        description: GitHub Remove Team Member (legacy)
        call: teams-legacy.removeteammemberlegacy
        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-legacy.getteammembershipforuserlegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: addorupdateteammembershipforuserlegacy
        description: GitHub Add or Update Team Membership for User (legacy)
        call: teams-legacy.addorupdateteammembershipforuserlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeteammembershipforuserlegacy
        description: GitHub Remove Team Membership for User (legacy)
        call: teams-legacy.removeteammembershipforuserlegacy
        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-legacy.listteamprojectslegacy
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/projects/{project-id}
      name: teams-team-id-projects-project-id
      description: REST surface for teams-team_id-projects-project_id.
      operations:
      - method: GET
        name: checkteampermissionsforprojectlegacy
        description: GitHub Check Team Permissions for Project (legacy)
        call: teams-legacy.checkteampermissionsforprojectlegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: addorupdateteamprojectpermissionslegacy
        description: GitHub Add or Update Team Project Permissions (legacy)
        call: teams-legacy.addorupdateteamprojectpermissionslegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeprojectfromteamlegacy
        description: GitHub Remove Project from Team (legacy)
        call: teams-legacy.removeprojectfromteamlegacy
        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-legacy.listteamrepositorieslegacy
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/repos/{owner}/{repo}
      name: teams-team-id-repos-owner-repo
      description: REST surface for teams-team_id-repos-owner-repo.
      operations:
      - method: GET
        name: checkteampermissionsforrepositorylegacy
        description: GitHub Check Team Permissions for Repository (legacy)
        call: teams-legacy.checkteampermissionsforrepositorylegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: addorupdateteamrepositorypermissionslegacy
        description: GitHub Add or Update Team Repository Permissions (legacy)
        call: teams-legacy.addorupdateteamrepositorypermissionslegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removerepositoryfromteamlegacy
        description: GitHub Remove Repository from Team (legacy)
        call: teams-legacy.removerepositoryfromteamlegacy
        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-legacy.listchildteamslegacy
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: teams-legacy-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Teams API — Legacy. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-get-team-legacy
      description: GitHub Get Team (legacy)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-legacy.getteamlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-team-legacy
      description: GitHub Update Team (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-legacy.updateteamlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-team-legacy
      description: GitHub Delete Team (legacy)
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: teams-legacy.deleteteamlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-discussions-legacy
      description: GitHub List Discussions (legacy)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-legacy.listdiscussionslegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-discussion-legacy
      description: GitHub Create Discussion (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: teams-legacy.creatediscussionlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-discussion-legacy
      description: GitHub Get Discussion (legacy)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-legacy.getdiscussionlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-discussion-legacy
      description: GitHub Update Discussion (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-legacy.updatediscussionlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-discussion-legacy
      description: GitHub Delete Discussion (legacy)
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: teams-legacy.deletediscussionlegacy
      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-legacy.listdiscussioncommentslegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-discussion-comment-legacy
      description: GitHub Create Discussion Comment (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: teams-legacy.creatediscussioncommentlegacy
      with:
        body: tools.body
      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-legacy.getdiscussioncommentlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-discussion-comment-legacy
      description: GitHub Update Discussion Comment (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-legacy.updatediscussioncommentlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-discussion-comment-legacy
      description: GitHub Delete Discussion Comment (legacy)
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: teams-legacy.deletediscussioncommentlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-reactions-team-discussion
      description: GitHub List Reactions for Team Discussion Comment (legacy)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-legacy.listreactionsforteamdiscussioncommentlegacy
      with:
        content: tools.content
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-reaction-team-discussion
      description: GitHub Create Reaction for Team Discussion Comment (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: teams-legacy.createreactionforteamdiscussioncommentlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-reactions-team-discussion-2
      description: GitHub List Reactions for Team Discussion (legacy)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-legacy.listreactionsforteamdiscussionlegacy
      with:
        content: tools.content
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-reaction-team-discussion-2
      description: GitHub Create Reaction for Team Discussion (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: teams-legacy.createreactionforteamdiscussionlegacy
      with:
        body: tools.body
      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-legacy.listteammemberslegacy
      with:
        role: tools.role
      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-legacy.getteammemberlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-team-member-legacy
      description: GitHub Add Team Member (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-legacy.addteammemberlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-team-member-legacy
      description: GitHub Remove Team Member (legacy)
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: teams-legacy.removeteammemberlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-team-membership-user
      description: GitHub Get Team Membership for User (legacy)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-legacy.getteammembershipforuserlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-update-team-membership
      description: GitHub Add or Update Team Membership for User (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-legacy.addorupdateteammembershipforuserlegacy
      with:
        body: tools.bod

# --- truncated at 32 KB (35 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/teams-legacy.yaml