naftiko: 1.0.0-alpha2 info: label: Segment HTTP Tracking API — Alias description: 'Segment HTTP Tracking API — Alias. 1 operations. Lead operation: Merge two user identities. Self-contained Naftiko capability covering one Segment business surface.' tags: - Segment - Alias created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SEGMENT_API_KEY: SEGMENT_API_KEY capability: consumes: - type: http namespace: http-tracking-alias baseUri: https://api.segment.io/v1 description: Segment HTTP Tracking API — Alias business capability. Self-contained, no shared references. resources: - name: alias path: /alias operations: - name: alias method: POST description: Merge two user identities outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: basic username: '{{env.SEGMENT_USER}}' password: '{{env.SEGMENT_PASS}}' exposes: - type: rest namespace: http-tracking-alias-rest port: 8080 description: REST adapter for Segment HTTP Tracking API — Alias. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/alias name: alias description: REST surface for alias. operations: - method: POST name: alias description: Merge two user identities call: http-tracking-alias.alias with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: http-tracking-alias-mcp port: 9090 transport: http description: MCP adapter for Segment HTTP Tracking API — Alias. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: merge-two-user-identities description: Merge two user identities hints: readOnly: false destructive: false idempotent: false call: http-tracking-alias.alias with: body: tools.body outputParameters: - type: object mapping: $.