naftiko: 1.0.0-alpha2 info: label: GitHub Teams API — Create description: 'GitHub Teams API — Create. 9 operations. Lead operation: GitHub Create Team. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Create created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: teams-create baseUri: '' description: GitHub Teams API — Create business capability. Self-contained, no shared references. resources: - name: orgs-org-teams path: /orgs/{org}/teams operations: - name: createteam method: POST description: GitHub Create Team outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-org-teams-team_slug-discussions path: /orgs/{org}/teams/{team_slug}/discussions operations: - name: creatediscussion method: POST description: GitHub Create Discussion outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-org-teams-team_slug-discussions-discussion_number-comments path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments operations: - name: creatediscussioncomment method: POST description: GitHub Create Discussion Comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - 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: createreactionforteamdiscussioncomment method: POST description: GitHub Create Reaction for Team Discussion Comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-org-teams-team_slug-discussions-discussion_number-reactions path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions operations: - name: createreactionforteamdiscussion method: POST description: GitHub Create Reaction for Team Discussion 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 path: /teams/{team_id}/discussions operations: - 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-comments path: /teams/{team_id}/discussions/{discussion_number}/comments operations: - 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-reactions path: /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions operations: - 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: 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 authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: teams-create-rest port: 8080 description: REST adapter for GitHub Teams API — Create. 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: POST name: createteam description: GitHub Create Team call: teams-create.createteam with: body: rest.body 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: POST name: creatediscussion description: GitHub Create Discussion call: teams-create.creatediscussion with: body: rest.body 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: POST name: creatediscussioncomment description: GitHub Create Discussion Comment call: teams-create.creatediscussioncomment with: body: rest.body 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: POST name: createreactionforteamdiscussioncomment description: GitHub Create Reaction for Team Discussion Comment call: teams-create.createreactionforteamdiscussioncomment with: body: rest.body 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: POST name: createreactionforteamdiscussion description: GitHub Create Reaction for Team Discussion call: teams-create.createreactionforteamdiscussion with: body: rest.body 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: POST name: creatediscussionlegacy description: GitHub Create Discussion (legacy) call: teams-create.creatediscussionlegacy with: body: rest.body 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: POST name: creatediscussioncommentlegacy description: GitHub Create Discussion Comment (legacy) call: teams-create.creatediscussioncommentlegacy with: body: rest.body 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: POST name: createreactionforteamdiscussioncommentlegacy description: GitHub Create Reaction for Team Discussion Comment (legacy) call: teams-create.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: POST name: createreactionforteamdiscussionlegacy description: GitHub Create Reaction for Team Discussion (legacy) call: teams-create.createreactionforteamdiscussionlegacy with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: teams-create-mcp port: 9090 transport: http description: MCP adapter for GitHub Teams API — Create. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-create-team description: GitHub Create Team hints: readOnly: false destructive: false idempotent: false call: teams-create.createteam with: body: tools.body outputParameters: - type: object mapping: $. - name: github-create-discussion description: GitHub Create Discussion hints: readOnly: false destructive: false idempotent: false call: teams-create.creatediscussion with: body: tools.body outputParameters: - type: object mapping: $. - name: github-create-discussion-comment description: GitHub Create Discussion Comment hints: readOnly: false destructive: false idempotent: false call: teams-create.creatediscussioncomment with: body: tools.body outputParameters: - type: object mapping: $. - name: github-create-reaction-team-discussion description: GitHub Create Reaction for Team Discussion Comment hints: readOnly: false destructive: false idempotent: false call: teams-create.createreactionforteamdiscussioncomment with: body: tools.body outputParameters: - type: object mapping: $. - name: github-create-reaction-team-discussion-2 description: GitHub Create Reaction for Team Discussion hints: readOnly: false destructive: false idempotent: false call: teams-create.createreactionforteamdiscussion with: body: tools.body outputParameters: - type: object mapping: $. - name: github-create-discussion-legacy description: GitHub Create Discussion (legacy) hints: readOnly: false destructive: false idempotent: false call: teams-create.creatediscussionlegacy with: body: tools.body 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-create.creatediscussioncommentlegacy with: body: tools.body outputParameters: - type: object mapping: $. - name: github-create-reaction-team-discussion-3 description: GitHub Create Reaction for Team Discussion Comment (legacy) hints: readOnly: false destructive: false idempotent: false call: teams-create.createreactionforteamdiscussioncommentlegacy with: body: tools.body outputParameters: - type: object mapping: $. - name: github-create-reaction-team-discussion-4 description: GitHub Create Reaction for Team Discussion (legacy) hints: readOnly: false destructive: false idempotent: false call: teams-create.createreactionforteamdiscussionlegacy with: body: tools.body outputParameters: - type: object mapping: $.