naftiko: 1.0.0-alpha2 info: label: GitHub Issues API — Events description: 'GitHub Issues API — Events. 4 operations. Lead operation: GitHub List Issue Events for Repository. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: issues-events baseUri: '' description: GitHub Issues API — Events business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-issues-events path: /repos/{owner}/{repo}/issues/events operations: - name: listissueeventsforrepository method: GET description: GitHub List Issue Events for Repository 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: repos-owner-repo-issues-events-event_id path: /repos/{owner}/{repo}/issues/events/{event_id} operations: - name: getanissueevent method: GET description: GitHub Get an Issue Event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: event_id in: path type: integer required: true - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: repos-owner-repo-issues-issue_number-events path: /repos/{owner}/{repo}/issues/{issue_number}/events operations: - name: listissueevents method: GET description: GitHub List Issue Events 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: repos-owner-repo-issues-issue_number-timeline path: /repos/{owner}/{repo}/issues/{issue_number}/timeline operations: - name: listtimelineeventsforanissue method: GET description: GitHub List Timeline Events for an Issue 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: issues-events-rest port: 8080 description: REST adapter for GitHub Issues API — Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/issues/events name: repos-owner-repo-issues-events description: REST surface for repos-owner-repo-issues-events. operations: - method: GET name: listissueeventsforrepository description: GitHub List Issue Events for Repository call: issues-events.listissueeventsforrepository with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/issues/events/{event-id} name: repos-owner-repo-issues-events-event-id description: REST surface for repos-owner-repo-issues-events-event_id. operations: - method: GET name: getanissueevent description: GitHub Get an Issue Event call: issues-events.getanissueevent with: event_id: rest.event_id Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/issues/{issue-number}/events name: repos-owner-repo-issues-issue-number-events description: REST surface for repos-owner-repo-issues-issue_number-events. operations: - method: GET name: listissueevents description: GitHub List Issue Events call: issues-events.listissueevents with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/issues/{issue-number}/timeline name: repos-owner-repo-issues-issue-number-timeline description: REST surface for repos-owner-repo-issues-issue_number-timeline. operations: - method: GET name: listtimelineeventsforanissue description: GitHub List Timeline Events for an Issue call: issues-events.listtimelineeventsforanissue with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: issues-events-mcp port: 9090 transport: http description: MCP adapter for GitHub Issues API — Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-issue-events-repository description: GitHub List Issue Events for Repository hints: readOnly: true destructive: false idempotent: true call: issues-events.listissueeventsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-issue-event description: GitHub Get an Issue Event hints: readOnly: true destructive: false idempotent: true call: issues-events.getanissueevent with: event_id: tools.event_id Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-issue-events description: GitHub List Issue Events hints: readOnly: true destructive: false idempotent: true call: issues-events.listissueevents with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-timeline-events-issue description: GitHub List Timeline Events for an Issue hints: readOnly: true destructive: false idempotent: true call: issues-events.listtimelineeventsforanissue with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.