naftiko: 1.0.0-alpha2 info: label: LaunchDarkly REST API — Metrics description: 'LaunchDarkly REST API — Metrics. 2 operations. Lead operation: List metrics. Self-contained Naftiko capability covering one Launchdarkly business surface.' tags: - Launchdarkly - Metrics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LAUNCHDARKLY_API_KEY: LAUNCHDARKLY_API_KEY capability: consumes: - type: http namespace: rest-metrics baseUri: https://app.launchdarkly.com/api/v2 description: LaunchDarkly REST API — Metrics business capability. Self-contained, no shared references. resources: - name: metrics-projectKey path: /metrics/{projectKey} operations: - name: listmetrics method: GET description: List metrics outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createmetric method: POST description: Create a metric outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.LAUNCHDARKLY_API_KEY}}' exposes: - type: rest namespace: rest-metrics-rest port: 8080 description: REST adapter for LaunchDarkly REST API — Metrics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/metrics/{projectkey} name: metrics-projectkey description: REST surface for metrics-projectKey. operations: - method: GET name: listmetrics description: List metrics call: rest-metrics.listmetrics outputParameters: - type: object mapping: $. - method: POST name: createmetric description: Create a metric call: rest-metrics.createmetric with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: rest-metrics-mcp port: 9090 transport: http description: MCP adapter for LaunchDarkly REST API — Metrics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-metrics description: List metrics hints: readOnly: true destructive: false idempotent: true call: rest-metrics.listmetrics outputParameters: - type: object mapping: $. - name: create-metric description: Create a metric hints: readOnly: false destructive: false idempotent: false call: rest-metrics.createmetric with: body: tools.body outputParameters: - type: object mapping: $.