naftiko: 1.0.0-alpha2 info: label: GitHub User API — Watched description: 'GitHub User API — Watched. 2 operations. Lead operation: GitHub List Repositories Watched by the Authenticated User. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Watched created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: users-watched baseUri: '' description: GitHub User API — Watched business capability. Self-contained, no shared references. resources: - name: user-subscriptions path: /user/subscriptions operations: - name: listrepositorieswatchedbytheauthenticateduser method: GET description: GitHub List Repositories Watched by the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: users-username-subscriptions path: /users/{username}/subscriptions operations: - name: listrepositorieswatchedbyuser method: GET description: GitHub List Repositories Watched by User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: users-watched-rest port: 8080 description: REST adapter for GitHub User API — Watched. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/user/subscriptions name: user-subscriptions description: REST surface for user-subscriptions. operations: - method: GET name: listrepositorieswatchedbytheauthenticateduser description: GitHub List Repositories Watched by the Authenticated User call: users-watched.listrepositorieswatchedbytheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/users/{username}/subscriptions name: users-username-subscriptions description: REST surface for users-username-subscriptions. operations: - method: GET name: listrepositorieswatchedbyuser description: GitHub List Repositories Watched by User call: users-watched.listrepositorieswatchedbyuser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: users-watched-mcp port: 9090 transport: http description: MCP adapter for GitHub User API — Watched. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-repositories-watched-authenticated description: GitHub List Repositories Watched by the Authenticated User hints: readOnly: true destructive: false idempotent: true call: users-watched.listrepositorieswatchedbytheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-repositories-watched-user description: GitHub List Repositories Watched by User hints: readOnly: true destructive: false idempotent: true call: users-watched.listrepositorieswatchedbyuser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.