naftiko: 1.0.0-alpha2 info: label: Port API — Authentication / Authorization description: 'Port API — Authentication / Authorization. 2 operations. Lead operation: Create an access token. Self-contained Naftiko capability covering one Port business surface.' tags: - Port - Authentication / Authorization created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PORT_API_KEY: PORT_API_KEY capability: consumes: - type: http namespace: port-authentication-authorization baseUri: '' description: Port API — Authentication / Authorization business capability. Self-contained, no shared references. resources: - name: v1-auth-access_token path: /v1/auth/access_token operations: - name: post method: POST description: Create an access token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-rotate-credentials-user_email path: /v1/rotate-credentials/{user_email} operations: - name: post method: POST description: Rotate a user's credentials outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: user_email in: path type: string description: The email address of the user you want to operate on. required: true authentication: type: apikey key: Authorization value: '{{env.PORT_API_KEY}}' placement: header exposes: - type: rest namespace: port-authentication-authorization-rest port: 8080 description: REST adapter for Port API — Authentication / Authorization. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/auth/access-token name: v1-auth-access-token description: REST surface for v1-auth-access_token. operations: - method: POST name: post description: Create an access token call: port-authentication-authorization.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/rotate-credentials/{user-email} name: v1-rotate-credentials-user-email description: REST surface for v1-rotate-credentials-user_email. operations: - method: POST name: post description: Rotate a user's credentials call: port-authentication-authorization.post with: user_email: rest.user_email outputParameters: - type: object mapping: $. - type: mcp namespace: port-authentication-authorization-mcp port: 9090 transport: http description: MCP adapter for Port API — Authentication / Authorization. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-access-token description: Create an access token hints: readOnly: false destructive: false idempotent: false call: port-authentication-authorization.post with: body: tools.body outputParameters: - type: object mapping: $. - name: rotate-user-s-credentials description: Rotate a user's credentials hints: readOnly: false destructive: false idempotent: false call: port-authentication-authorization.post with: user_email: tools.user_email outputParameters: - type: object mapping: $.