naftiko: 1.0.0-alpha2 info: label: PDCP API — usage description: 'PDCP API — usage. 1 operations. Lead operation: Get API Services Usage. Self-contained Naftiko capability covering one Nuclei business surface.' tags: - Nuclei - usage created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: NUCLEI_API_KEY: NUCLEI_API_KEY capability: consumes: - type: http namespace: nuclei-usage baseUri: https://api.projectdiscovery.io description: PDCP API — usage business capability. Self-contained, no shared references. resources: - name: v1-user-usage path: /v1/user/usage operations: - name: getv1userusage method: GET description: Get API Services Usage outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-Team-Id in: header type: string description: 'Retrieve the Team ID from: https://cloud.projectdiscovery.io/settings/team' - name: body in: body type: object description: Request body (JSON). required: false authentication: type: apikey key: X-API-Key value: '{{env.NUCLEI_API_KEY}}' placement: header exposes: - type: rest namespace: nuclei-usage-rest port: 8080 description: REST adapter for PDCP API — usage. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/user/usage name: v1-user-usage description: REST surface for v1-user-usage. operations: - method: GET name: getv1userusage description: Get API Services Usage call: nuclei-usage.getv1userusage with: X-Team-Id: rest.X-Team-Id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: nuclei-usage-mcp port: 9090 transport: http description: MCP adapter for PDCP API — usage. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-api-services-usage description: Get API Services Usage hints: readOnly: true destructive: false idempotent: true call: nuclei-usage.getv1userusage with: X-Team-Id: tools.X-Team-Id body: tools.body outputParameters: - type: object mapping: $.