naftiko: 1.0.0-alpha2 info: label: PerfectScale Public API — Authentication description: 'PerfectScale Public API — Authentication. 1 operations. Lead operation: Obtain access token. Self-contained Naftiko capability covering one Perfectscale business surface.' tags: - Perfectscale - Authentication created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PERFECTSCALE_API_KEY: PERFECTSCALE_API_KEY capability: consumes: - type: http namespace: perfectscale-authentication baseUri: https://api.app.perfectscale.io/public/v1 description: PerfectScale Public API — Authentication business capability. Self-contained, no shared references. resources: - name: auth-public_auth path: /auth/public_auth operations: - name: authenticate method: POST description: Obtain access token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.PERFECTSCALE_API_KEY}}' exposes: - type: rest namespace: perfectscale-authentication-rest port: 8080 description: REST adapter for PerfectScale Public API — Authentication. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/auth/public-auth name: auth-public-auth description: REST surface for auth-public_auth. operations: - method: POST name: authenticate description: Obtain access token call: perfectscale-authentication.authenticate with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: perfectscale-authentication-mcp port: 9090 transport: http description: MCP adapter for PerfectScale Public API — Authentication. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: obtain-access-token description: Obtain access token hints: readOnly: false destructive: false idempotent: false call: perfectscale-authentication.authenticate with: body: tools.body outputParameters: - type: object mapping: $.