naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Events description: 'GitHub Repos API — Events. 5 operations. Lead operation: List Repository Events. 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: temp-events baseUri: '' description: GitHub Repos API — Events business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-events path: /repos/{owner}/{repo}/events operations: - name: listrepositoryevents method: GET description: List Repository 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-events path: /repos/{owner}/{repo}/issues/events operations: - name: listissueeventsforrepository method: GET description: 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: 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: 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: 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: temp-events-rest port: 8080 description: REST adapter for GitHub Repos API — Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/events name: repos-owner-repo-events description: REST surface for repos-owner-repo-events. operations: - method: GET name: listrepositoryevents description: List Repository Events call: temp-events.listrepositoryevents 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 name: repos-owner-repo-issues-events description: REST surface for repos-owner-repo-issues-events. operations: - method: GET name: listissueeventsforrepository description: List Issue Events For Repository call: temp-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: Get An Issue Event call: temp-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: List Issue Events call: temp-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: List Timeline Events For An Issue call: temp-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: temp-events-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-repository-events description: List Repository Events hints: readOnly: true destructive: false idempotent: true call: temp-events.listrepositoryevents with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: list-issue-events-repository description: List Issue Events For Repository hints: readOnly: true destructive: false idempotent: true call: temp-events.listissueeventsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: get-issue-event description: Get An Issue Event hints: readOnly: true destructive: false idempotent: true call: temp-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: list-issue-events description: List Issue Events hints: readOnly: true destructive: false idempotent: true call: temp-events.listissueevents with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: list-timeline-events-issue description: List Timeline Events For An Issue hints: readOnly: true destructive: false idempotent: true call: temp-events.listtimelineeventsforanissue with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.