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