Cursor · Capability

Cursor Admin API — Usage

Cursor Admin API — Usage. 2 operations. Lead operation: Get daily usage data. Self-contained Naftiko capability covering one Cursor business surface.

Run with Naftiko CursorUsage

What You Can Do

POST
Getdailyusagedata — Get daily usage data
/v1/teams/daily-usage-data
POST
Getfilteredusageevents — Get filtered usage events
/v1/teams/filtered-usage-events

MCP Tools

get-daily-usage-data

Get daily usage data

read-only
get-filtered-usage-events

Get filtered usage events

read-only

Capability Spec

admin-usage.yaml Raw ↑
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: $.