naftiko: 1.0.0-alpha2 info: label: Plausible Events API — Events description: 'Plausible Events API — Events. 1 operations. Lead operation: Record a pageview or custom event. Self-contained Naftiko capability covering one Plausible business surface.' tags: - Plausible - Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PLAUSIBLE_API_KEY: PLAUSIBLE_API_KEY capability: consumes: - type: http namespace: events-events baseUri: https://plausible.io description: Plausible Events API — Events business capability. Self-contained, no shared references. resources: - name: api-event path: /api/event operations: - name: recordevent method: POST description: Record a pageview or custom event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: User-Agent in: header type: string description: Used to derive the visitor identifier. required: true - name: X-Forwarded-For in: header type: string description: Client IP address; defaults to the sender's remote IP. - name: X-Debug-Request in: header type: boolean description: When true, returns the IP used for visitor counting. - name: body in: body type: object description: Request body (JSON). required: true exposes: - type: rest namespace: events-events-rest port: 8080 description: REST adapter for Plausible Events API — Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/event name: api-event description: REST surface for api-event. operations: - method: POST name: recordevent description: Record a pageview or custom event call: events-events.recordevent with: User-Agent: rest.User-Agent X-Forwarded-For: rest.X-Forwarded-For X-Debug-Request: rest.X-Debug-Request body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: events-events-mcp port: 9090 transport: http description: MCP adapter for Plausible Events API — Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: record-pageview-custom-event description: Record a pageview or custom event hints: readOnly: false destructive: false idempotent: false call: events-events.recordevent with: User-Agent: tools.User-Agent X-Forwarded-For: tools.X-Forwarded-For X-Debug-Request: tools.X-Debug-Request body: tools.body outputParameters: - type: object mapping: $.