naftiko: 1.0.0-alpha2 info: label: GitHub Copilot REST API — Copilot User Management description: 'GitHub Copilot REST API — Copilot User Management. 4 operations. Lead operation: Github Copilot Add Teams to Copilot Subscription. Self-contained Naftiko capability covering one Github Copilot business surface.' tags: - Github Copilot - Copilot User Management created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_COPILOT_API_KEY: GITHUB_COPILOT_API_KEY capability: consumes: - type: http namespace: github-copilot-copilot-user-management baseUri: https://api.github.com description: GitHub Copilot REST API — Copilot User Management business capability. Self-contained, no shared references. resources: - name: orgs-org-copilot-billing-selected_teams path: /orgs/{org}/copilot/billing/selected_teams operations: - name: addteamstocopilotsubscription method: POST description: Github Copilot Add Teams to Copilot Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: removeteamsfromcopilotsubscription method: DELETE description: Github Copilot Remove Teams From Copilot Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-org-copilot-billing-selected_users path: /orgs/{org}/copilot/billing/selected_users operations: - name: adduserstocopilotsubscription method: POST description: Github Copilot Add Users to Copilot Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: removeusersfromcopilotsubscription method: DELETE description: Github Copilot Remove Users From Copilot Subscription 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_COPILOT_API_KEY}}' exposes: - type: rest namespace: github-copilot-copilot-user-management-rest port: 8080 description: REST adapter for GitHub Copilot REST API — Copilot User Management. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/copilot/billing/selected-teams name: orgs-org-copilot-billing-selected-teams description: REST surface for orgs-org-copilot-billing-selected_teams. operations: - method: POST name: addteamstocopilotsubscription description: Github Copilot Add Teams to Copilot Subscription call: github-copilot-copilot-user-management.addteamstocopilotsubscription with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removeteamsfromcopilotsubscription description: Github Copilot Remove Teams From Copilot Subscription call: github-copilot-copilot-user-management.removeteamsfromcopilotsubscription with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/copilot/billing/selected-users name: orgs-org-copilot-billing-selected-users description: REST surface for orgs-org-copilot-billing-selected_users. operations: - method: POST name: adduserstocopilotsubscription description: Github Copilot Add Users to Copilot Subscription call: github-copilot-copilot-user-management.adduserstocopilotsubscription with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removeusersfromcopilotsubscription description: Github Copilot Remove Users From Copilot Subscription call: github-copilot-copilot-user-management.removeusersfromcopilotsubscription with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: github-copilot-copilot-user-management-mcp port: 9090 transport: http description: MCP adapter for GitHub Copilot REST API — Copilot User Management. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-copilot-add-teams-copilot description: Github Copilot Add Teams to Copilot Subscription hints: readOnly: false destructive: false idempotent: false call: github-copilot-copilot-user-management.addteamstocopilotsubscription with: body: tools.body outputParameters: - type: object mapping: $. - name: github-copilot-remove-teams-copilot description: Github Copilot Remove Teams From Copilot Subscription hints: readOnly: false destructive: true idempotent: true call: github-copilot-copilot-user-management.removeteamsfromcopilotsubscription with: body: tools.body outputParameters: - type: object mapping: $. - name: github-copilot-add-users-copilot description: Github Copilot Add Users to Copilot Subscription hints: readOnly: false destructive: false idempotent: false call: github-copilot-copilot-user-management.adduserstocopilotsubscription with: body: tools.body outputParameters: - type: object mapping: $. - name: github-copilot-remove-users-copilot description: Github Copilot Remove Users From Copilot Subscription hints: readOnly: false destructive: true idempotent: true call: github-copilot-copilot-user-management.removeusersfromcopilotsubscription with: body: tools.body outputParameters: - type: object mapping: $.