naftiko: 1.0.0-alpha2 info: label: Statsig HTTP API — Events description: 'Statsig HTTP API — Events. 1 operations. Lead operation: Log custom events. Self-contained Naftiko capability covering one Statsig business surface.' tags: - Statsig - Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STATSIG_API_KEY: STATSIG_API_KEY capability: consumes: - type: http namespace: http-events baseUri: https://api.statsig.com/v1 description: Statsig HTTP API — Events business capability. Self-contained, no shared references. resources: - name: log_event path: /log_event operations: - name: logevent method: POST description: Log custom events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: STATSIG-CLIENT-TIME in: header type: integer description: Client-side timestamp in milliseconds since epoch, used to normalize event timestamps. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: statsig-api-key value: '{{env.STATSIG_API_KEY}}' placement: header exposes: - type: rest namespace: http-events-rest port: 8080 description: REST adapter for Statsig HTTP API — Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/log-event name: log-event description: REST surface for log_event. operations: - method: POST name: logevent description: Log custom events call: http-events.logevent with: STATSIG-CLIENT-TIME: rest.STATSIG-CLIENT-TIME body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: http-events-mcp port: 9090 transport: http description: MCP adapter for Statsig HTTP API — Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: log-custom-events description: Log custom events hints: readOnly: false destructive: false idempotent: false call: http-events.logevent with: STATSIG-CLIENT-TIME: tools.STATSIG-CLIENT-TIME body: tools.body outputParameters: - type: object mapping: $.