naftiko: 1.0.0-alpha2 info: label: Cursor Admin API — Groups description: 'Cursor Admin API — Groups. 7 operations. Lead operation: List billing groups. Self-contained Naftiko capability covering one Cursor business surface.' tags: - Cursor - Groups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CURSOR_API_KEY: CURSOR_API_KEY capability: consumes: - type: http namespace: admin-groups baseUri: https://api.cursor.com description: Cursor Admin API — Groups business capability. Self-contained, no shared references. resources: - name: teams-groups path: /teams/groups operations: - name: listgroups method: GET description: List billing groups outputRawFormat: json outputParameters: - name: result type: object value: $. - name: creategroup method: POST description: Create billing group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: teams-groups-groupId path: /teams/groups/{groupId} operations: - name: getgroup method: GET description: Get billing group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updategroup method: PATCH description: Update billing group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletegroup method: DELETE description: Delete billing group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-groups-groupId-members path: /teams/groups/{groupId}/members operations: - name: addgroupmembers method: POST description: Add members to group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: removegroupmembers method: DELETE description: Remove members from group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: basic username: '{{env.CURSOR_USER}}' password: '{{env.CURSOR_PASS}}' exposes: - type: rest namespace: admin-groups-rest port: 8080 description: REST adapter for Cursor Admin API — Groups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/teams/groups name: teams-groups description: REST surface for teams-groups. operations: - method: GET name: listgroups description: List billing groups call: admin-groups.listgroups outputParameters: - type: object mapping: $. - method: POST name: creategroup description: Create billing group call: admin-groups.creategroup with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/teams/groups/{groupid} name: teams-groups-groupid description: REST surface for teams-groups-groupId. operations: - method: GET name: getgroup description: Get billing group call: admin-groups.getgroup outputParameters: - type: object mapping: $. - method: PATCH name: updategroup description: Update billing group call: admin-groups.updategroup with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletegroup description: Delete billing group call: admin-groups.deletegroup outputParameters: - type: object mapping: $. - path: /v1/teams/groups/{groupid}/members name: teams-groups-groupid-members description: REST surface for teams-groups-groupId-members. operations: - method: POST name: addgroupmembers description: Add members to group call: admin-groups.addgroupmembers with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removegroupmembers description: Remove members from group call: admin-groups.removegroupmembers with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: admin-groups-mcp port: 9090 transport: http description: MCP adapter for Cursor Admin API — Groups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-billing-groups description: List billing groups hints: readOnly: true destructive: false idempotent: true call: admin-groups.listgroups outputParameters: - type: object mapping: $. - name: create-billing-group description: Create billing group hints: readOnly: false destructive: false idempotent: false call: admin-groups.creategroup with: body: tools.body outputParameters: - type: object mapping: $. - name: get-billing-group description: Get billing group hints: readOnly: true destructive: false idempotent: true call: admin-groups.getgroup outputParameters: - type: object mapping: $. - name: update-billing-group description: Update billing group hints: readOnly: false destructive: false idempotent: true call: admin-groups.updategroup with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-billing-group description: Delete billing group hints: readOnly: false destructive: true idempotent: true call: admin-groups.deletegroup outputParameters: - type: object mapping: $. - name: add-members-group description: Add members to group hints: readOnly: false destructive: false idempotent: false call: admin-groups.addgroupmembers with: body: tools.body outputParameters: - type: object mapping: $. - name: remove-members-group description: Remove members from group hints: readOnly: false destructive: true idempotent: true call: admin-groups.removegroupmembers with: body: tools.body outputParameters: - type: object mapping: $.