naftiko: 1.0.0-alpha2 info: label: Secure Code Warrior Portal API — Learning description: 'Secure Code Warrior Portal API — Learning. 2 operations. Lead operation: Get Learning Progress. Self-contained Naftiko capability covering one Secure Code Warrior business surface.' tags: - Secure Code Warrior - Learning created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SECURE_CODE_WARRIOR_API_KEY: SECURE_CODE_WARRIOR_API_KEY capability: consumes: - type: http namespace: portal-learning baseUri: https://portal-api.securecodewarrior.com/api/v2 description: Secure Code Warrior Portal API — Learning business capability. Self-contained, no shared references. resources: - name: learning-progress path: /learning/progress operations: - name: getlearningprogress method: GET description: Get Learning Progress outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: page in: query type: integer - name: learning-resources path: /learning/resources operations: - name: listlearningresources method: GET description: List Learning Resources outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: X-API-Key value: '{{env.SECURE_CODE_WARRIOR_API_KEY}}' placement: header exposes: - type: rest namespace: portal-learning-rest port: 8080 description: REST adapter for Secure Code Warrior Portal API — Learning. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/learning/progress name: learning-progress description: REST surface for learning-progress. operations: - method: GET name: getlearningprogress description: Get Learning Progress call: portal-learning.getlearningprogress with: page: rest.page outputParameters: - type: object mapping: $. - path: /v1/learning/resources name: learning-resources description: REST surface for learning-resources. operations: - method: GET name: listlearningresources description: List Learning Resources call: portal-learning.listlearningresources outputParameters: - type: object mapping: $. - type: mcp namespace: portal-learning-mcp port: 9090 transport: http description: MCP adapter for Secure Code Warrior Portal API — Learning. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-learning-progress description: Get Learning Progress hints: readOnly: true destructive: false idempotent: true call: portal-learning.getlearningprogress with: page: tools.page outputParameters: - type: object mapping: $. - name: list-learning-resources description: List Learning Resources hints: readOnly: true destructive: false idempotent: true call: portal-learning.listlearningresources outputParameters: - type: object mapping: $.