naftiko: 1.0.0-alpha2 info: label: PostHog API — activity_logs description: 'PostHog API — activity_logs. 1 operations. Lead operation: activity_logs. Self-contained Naftiko capability covering one Posthog business surface.' tags: - Posthog - activity_logs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: POSTHOG_API_KEY: POSTHOG_API_KEY capability: consumes: - type: http namespace: posthog-activity-logs baseUri: '' description: PostHog API — activity_logs business capability. Self-contained, no shared references. resources: - name: api-projects-project_id-activity_log path: /api/projects/{project_id}/activity_log/ operations: - name: activityloglist method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: item_id in: query type: string description: Filter by the ID of the affected resource. - name: page in: query type: integer description: Page number for pagination. When provided, uses page-based pagination ordered by most recent first. - name: page_size in: query type: integer description: 'Number of results per page (default: 100, max: 1000). Only used with page-based pagination.' - name: scope in: query type: string description: Filter by a single activity scope, e.g. "FeatureFlag", "Insight", "Dashboard", "Experiment". - name: scopes in: query type: array description: Filter by multiple activity scopes, comma-separated. Values must be valid ActivityScope enum values. E.g. "FeatureFlag,Insight". - name: user in: query type: string description: Filter by user UUID who performed the action. authentication: type: bearer token: '{{env.POSTHOG_API_KEY}}' exposes: - type: rest namespace: posthog-activity-logs-rest port: 8080 description: REST adapter for PostHog API — activity_logs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/projects/{project-id}/activity-log name: api-projects-project-id-activity-log description: REST surface for api-projects-project_id-activity_log. operations: - method: GET name: activityloglist description: activityloglist call: posthog-activity-logs.activityloglist with: item_id: rest.item_id page: rest.page page_size: rest.page_size scope: rest.scope scopes: rest.scopes user: rest.user outputParameters: - type: object mapping: $. - type: mcp namespace: posthog-activity-logs-mcp port: 9090 transport: http description: MCP adapter for PostHog API — activity_logs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: activityloglist description: activityloglist hints: readOnly: true destructive: false idempotent: true call: posthog-activity-logs.activityloglist with: item_id: tools.item_id page: tools.page page_size: tools.page_size scope: tools.scope scopes: tools.scopes user: tools.user outputParameters: - type: object mapping: $.