naftiko: 1.0.0-alpha2 info: label: Cursor Admin API — Usage description: 'Cursor Admin API — Usage. 2 operations. Lead operation: Get daily usage data. Self-contained Naftiko capability covering one Cursor business surface.' tags: - Cursor - Usage created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CURSOR_API_KEY: CURSOR_API_KEY capability: consumes: - type: http namespace: admin-usage baseUri: https://api.cursor.com description: Cursor Admin API — Usage business capability. Self-contained, no shared references. resources: - name: teams-daily-usage-data path: /teams/daily-usage-data operations: - name: getdailyusagedata method: POST description: Get daily usage data outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: teams-filtered-usage-events path: /teams/filtered-usage-events operations: - name: getfilteredusageevents method: POST description: Get filtered usage events 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-usage-rest port: 8080 description: REST adapter for Cursor Admin API — Usage. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/teams/daily-usage-data name: teams-daily-usage-data description: REST surface for teams-daily-usage-data. operations: - method: POST name: getdailyusagedata description: Get daily usage data call: admin-usage.getdailyusagedata with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/teams/filtered-usage-events name: teams-filtered-usage-events description: REST surface for teams-filtered-usage-events. operations: - method: POST name: getfilteredusageevents description: Get filtered usage events call: admin-usage.getfilteredusageevents with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: admin-usage-mcp port: 9090 transport: http description: MCP adapter for Cursor Admin API — Usage. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-daily-usage-data description: Get daily usage data hints: readOnly: true destructive: false idempotent: false call: admin-usage.getdailyusagedata with: body: tools.body outputParameters: - type: object mapping: $. - name: get-filtered-usage-events description: Get filtered usage events hints: readOnly: true destructive: false idempotent: false call: admin-usage.getfilteredusageevents with: body: tools.body outputParameters: - type: object mapping: $.