naftiko: 1.0.0-alpha2 info: label: Statsig HTTP API — Feature Gates description: 'Statsig HTTP API — Feature Gates. 2 operations. Lead operation: Check a feature gate. Self-contained Naftiko capability covering one Statsig business surface.' tags: - Statsig - Feature Gates created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STATSIG_API_KEY: STATSIG_API_KEY capability: consumes: - type: http namespace: http-feature-gates baseUri: https://api.statsig.com/v1 description: Statsig HTTP API — Feature Gates business capability. Self-contained, no shared references. resources: - name: check_gate path: /check_gate operations: - name: checkgate method: POST description: Check a feature gate outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: check_gate_multiple path: /check_gate_multiple operations: - name: checkgatemultiple method: POST description: Check multiple feature gates outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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-feature-gates-rest port: 8080 description: REST adapter for Statsig HTTP API — Feature Gates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/check-gate name: check-gate description: REST surface for check_gate. operations: - method: POST name: checkgate description: Check a feature gate call: http-feature-gates.checkgate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/check-gate-multiple name: check-gate-multiple description: REST surface for check_gate_multiple. operations: - method: POST name: checkgatemultiple description: Check multiple feature gates call: http-feature-gates.checkgatemultiple with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: http-feature-gates-mcp port: 9090 transport: http description: MCP adapter for Statsig HTTP API — Feature Gates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: check-feature-gate description: Check a feature gate hints: readOnly: true destructive: false idempotent: false call: http-feature-gates.checkgate with: body: tools.body outputParameters: - type: object mapping: $. - name: check-multiple-feature-gates description: Check multiple feature gates hints: readOnly: true destructive: false idempotent: false call: http-feature-gates.checkgatemultiple with: body: tools.body outputParameters: - type: object mapping: $.