naftiko: 1.0.0-alpha2 info: label: CircleCI REST API v2 — User description: 'CircleCI REST API v2 — User. 2 operations. Lead operation: Get current user. Self-contained Naftiko capability covering one Circleci business surface.' tags: - Circleci - User created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CIRCLECI_API_KEY: CIRCLECI_API_KEY capability: consumes: - type: http namespace: rest-api-v2-user baseUri: https://circleci.com/api/v2 description: CircleCI REST API v2 — User business capability. Self-contained, no shared references. resources: - name: me path: /me operations: - name: getcurrentuser method: GET description: Get current user outputRawFormat: json outputParameters: - name: result type: object value: $. - name: me-collaborations path: /me/collaborations operations: - name: getcollaborations method: GET description: List collaborations outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: Circle-Token value: '{{env.CIRCLECI_API_KEY}}' placement: header exposes: - type: rest namespace: rest-api-v2-user-rest port: 8080 description: REST adapter for CircleCI REST API v2 — 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 call: rest-api-v2-user.getcurrentuser outputParameters: - type: object mapping: $. - path: /v1/me/collaborations name: me-collaborations description: REST surface for me-collaborations. operations: - method: GET name: getcollaborations description: List collaborations call: rest-api-v2-user.getcollaborations outputParameters: - type: object mapping: $. - type: mcp namespace: rest-api-v2-user-mcp port: 9090 transport: http description: MCP adapter for CircleCI REST API v2 — User. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-current-user description: Get current user hints: readOnly: true destructive: false idempotent: true call: rest-api-v2-user.getcurrentuser outputParameters: - type: object mapping: $. - name: list-collaborations description: List collaborations hints: readOnly: true destructive: false idempotent: true call: rest-api-v2-user.getcollaborations outputParameters: - type: object mapping: $.