naftiko: 1.0.0-alpha2 info: label: langfuse — LegacyMetricsV1 description: 'langfuse — LegacyMetricsV1. 1 operations. Lead operation: LegacyMetricsV1. Self-contained Naftiko capability covering one Langfuse business surface.' tags: - Langfuse - LegacyMetricsV1 created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LANGFUSE_API_KEY: LANGFUSE_API_KEY capability: consumes: - type: http namespace: langfuse-legacymetricsv1 baseUri: '' description: langfuse — LegacyMetricsV1 business capability. Self-contained, no shared references. resources: - name: api-public-metrics path: /api/public/metrics operations: - name: legacymetricsv1metrics method: GET description: Get metrics from the Langfuse project using a query object. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: string description: 'JSON string containing the query parameters with the following structure:' required: true authentication: type: basic username: '{{env.LANGFUSE_USER}}' password: '{{env.LANGFUSE_PASS}}' exposes: - type: rest namespace: langfuse-legacymetricsv1-rest port: 8080 description: REST adapter for langfuse — LegacyMetricsV1. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/public/metrics name: api-public-metrics description: REST surface for api-public-metrics. operations: - method: GET name: legacymetricsv1metrics description: Get metrics from the Langfuse project using a query object. call: langfuse-legacymetricsv1.legacymetricsv1metrics with: query: rest.query outputParameters: - type: object mapping: $. - type: mcp namespace: langfuse-legacymetricsv1-mcp port: 9090 transport: http description: MCP adapter for langfuse — LegacyMetricsV1. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-metrics-langfuse-project-using description: Get metrics from the Langfuse project using a query object. hints: readOnly: true destructive: false idempotent: true call: langfuse-legacymetricsv1.legacymetricsv1metrics with: query: tools.query outputParameters: - type: object mapping: $.