naftiko: 1.0.0-alpha2 info: label: FatSecret Platform API — Profile Foods description: 'FatSecret Platform API — Profile Foods. 3 operations. Lead operation: Add favorite food. Self-contained Naftiko capability covering one Fatsecret business surface.' tags: - Fatsecret - Profile Foods created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FATSECRET_API_KEY: FATSECRET_API_KEY capability: consumes: - type: http namespace: platform-profile-foods baseUri: https://platform.fatsecret.com/rest description: FatSecret Platform API — Profile Foods business capability. Self-contained, no shared references. resources: - name: food-favorite-add-v2 path: /food/favorite/add/v2 operations: - name: addfavoritefood method: POST description: Add favorite food outputRawFormat: json outputParameters: - name: result type: object value: $. - name: food-favorite-delete-v2 path: /food/favorite/delete/v2 operations: - name: deletefavoritefood method: POST description: Delete favorite food outputRawFormat: json outputParameters: - name: result type: object value: $. - name: food-favorites-v2 path: /food/favorites/v2 operations: - name: getfavoritefoods method: GET description: Get favorite foods outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.FATSECRET_API_KEY}}' exposes: - type: rest namespace: platform-profile-foods-rest port: 8080 description: REST adapter for FatSecret Platform API — Profile Foods. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/food/favorite/add/v2 name: food-favorite-add-v2 description: REST surface for food-favorite-add-v2. operations: - method: POST name: addfavoritefood description: Add favorite food call: platform-profile-foods.addfavoritefood outputParameters: - type: object mapping: $. - path: /v1/food/favorite/delete/v2 name: food-favorite-delete-v2 description: REST surface for food-favorite-delete-v2. operations: - method: POST name: deletefavoritefood description: Delete favorite food call: platform-profile-foods.deletefavoritefood outputParameters: - type: object mapping: $. - path: /v1/food/favorites/v2 name: food-favorites-v2 description: REST surface for food-favorites-v2. operations: - method: GET name: getfavoritefoods description: Get favorite foods call: platform-profile-foods.getfavoritefoods outputParameters: - type: object mapping: $. - type: mcp namespace: platform-profile-foods-mcp port: 9090 transport: http description: MCP adapter for FatSecret Platform API — Profile Foods. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: add-favorite-food description: Add favorite food hints: readOnly: false destructive: false idempotent: false call: platform-profile-foods.addfavoritefood outputParameters: - type: object mapping: $. - name: delete-favorite-food description: Delete favorite food hints: readOnly: false destructive: false idempotent: false call: platform-profile-foods.deletefavoritefood outputParameters: - type: object mapping: $. - name: get-favorite-foods description: Get favorite foods hints: readOnly: true destructive: false idempotent: true call: platform-profile-foods.getfavoritefoods outputParameters: - type: object mapping: $.