naftiko: 1.0.0-alpha2 info: label: Unsplash API — Current User description: 'Unsplash API — Current User. 2 operations. Lead operation: Get Current User Profile. Self-contained Naftiko capability covering one Unsplash business surface.' tags: - Unsplash - Current User created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UNSPLASH_API_KEY: UNSPLASH_API_KEY capability: consumes: - type: http namespace: unsplash-current-user baseUri: https://api.unsplash.com description: Unsplash API — Current User business capability. Self-contained, no shared references. resources: - name: me path: /me operations: - name: getcurrentuser method: GET description: Get Current User Profile outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecurrentuser method: PUT description: Update Current User Profile outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.UNSPLASH_API_KEY}}' exposes: - type: rest namespace: unsplash-current-user-rest port: 8080 description: REST adapter for Unsplash API — Current User. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/me name: me description: REST surface for me. operations: - method: GET name: getcurrentuser description: Get Current User Profile call: unsplash-current-user.getcurrentuser outputParameters: - type: object mapping: $. - method: PUT name: updatecurrentuser description: Update Current User Profile call: unsplash-current-user.updatecurrentuser with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: unsplash-current-user-mcp port: 9090 transport: http description: MCP adapter for Unsplash API — Current User. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-current-user-profile description: Get Current User Profile hints: readOnly: true destructive: false idempotent: true call: unsplash-current-user.getcurrentuser outputParameters: - type: object mapping: $. - name: update-current-user-profile description: Update Current User Profile hints: readOnly: false destructive: false idempotent: true call: unsplash-current-user.updatecurrentuser with: body: tools.body outputParameters: - type: object mapping: $.