GitHub · Capability

GitHub Events API — Events

GitHub Events API — Events. 3 operations. Lead operation: GitHub Get an Issue Event. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubEvents

What You Can Do

GET
Getanissueevent — GitHub Get an Issue Event
/v1/repos/{owner}/{repo}/issues/events/{event-id}
GET
Listorganizationeventsfortheauthenticateduser — GitHub List Organization Events for the Authenticated User
/v1/users/{username}/events/orgs/{org}
GET
Listpubliceventsforuser — GitHub List Public Events for User
/v1/users/{username}/events/public

MCP Tools

github-get-issue-event

GitHub Get an Issue Event

read-only idempotent
github-list-organization-events-authenticated

GitHub List Organization Events for the Authenticated User

read-only idempotent
github-list-public-events-user

GitHub List Public Events for User

read-only idempotent

Capability Spec

events-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Events API — Events
  description: 'GitHub Events API — Events. 3 operations. Lead operation: GitHub Get an Issue Event. 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: events-events
    baseUri: ''
    description: GitHub Events API — Events business capability. Self-contained, no shared references.
    resources:
    - 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: users-username-events-orgs-org
      path: /users/{username}/events/orgs/{org}
      operations:
      - name: listorganizationeventsfortheauthenticateduser
        method: GET
        description: GitHub List Organization Events for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-username-events-public
      path: /users/{username}/events/public
      operations:
      - name: listpubliceventsforuser
        method: GET
        description: GitHub List Public Events for User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: events-events-rest
    port: 8080
    description: REST adapter for GitHub Events API — Events. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - 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: events-events.getanissueevent
        with:
          event_id: rest.event_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{username}/events/orgs/{org}
      name: users-username-events-orgs-org
      description: REST surface for users-username-events-orgs-org.
      operations:
      - method: GET
        name: listorganizationeventsfortheauthenticateduser
        description: GitHub List Organization Events for the Authenticated User
        call: events-events.listorganizationeventsfortheauthenticateduser
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{username}/events/public
      name: users-username-events-public
      description: REST surface for users-username-events-public.
      operations:
      - method: GET
        name: listpubliceventsforuser
        description: GitHub List Public Events for User
        call: events-events.listpubliceventsforuser
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: events-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Events API — Events. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-get-issue-event
      description: GitHub Get an Issue Event
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: events-events.getanissueevent
      with:
        event_id: tools.event_id
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-organization-events-authenticated
      description: GitHub List Organization Events for the Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: events-events.listorganizationeventsfortheauthenticateduser
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-public-events-user
      description: GitHub List Public Events for User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: events-events.listpubliceventsforuser
      outputParameters:
      - type: object
        mapping: $.