GitHub · Capability

GitHub User API — Events

GitHub User API — Events. 5 operations. Lead operation: GitHub List Events for the Authenticated User. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubEvents

What You Can Do

GET
Listeventsfortheauthenticateduser — GitHub List Events for the Authenticated User
/v1/users/{username}/events
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
GET
Listeventsreceivedbytheauthenticateduser — GitHub List Events Received by the Authenticated User
/v1/users/{username}/received-events
GET
Listpubliceventsreceivedbyuser — GitHub List Public Events Received by User
/v1/users/{username}/received-events/public

MCP Tools

github-list-events-authenticated-user

GitHub List Events for the Authenticated User

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
github-list-events-received-authenticated

GitHub List Events Received by the Authenticated User

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

GitHub List Public Events Received by User

read-only idempotent

Capability Spec

users-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub User API — Events
  description: 'GitHub User API — Events. 5 operations. Lead operation: GitHub List Events for the Authenticated User. 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: users-events
    baseUri: ''
    description: GitHub User API — Events business capability. Self-contained, no shared references.
    resources:
    - name: users-username-events
      path: /users/{username}/events
      operations:
      - name: listeventsfortheauthenticateduser
        method: GET
        description: GitHub List Events for 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-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: $.
        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-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: $.
        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-received_events
      path: /users/{username}/received_events
      operations:
      - name: listeventsreceivedbytheauthenticateduser
        method: GET
        description: GitHub List Events Received 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-received_events-public
      path: /users/{username}/received_events/public
      operations:
      - name: listpubliceventsreceivedbyuser
        method: GET
        description: GitHub List Public Events Received 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-events-rest
    port: 8080
    description: REST adapter for GitHub User API — Events. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/users/{username}/events
      name: users-username-events
      description: REST surface for users-username-events.
      operations:
      - method: GET
        name: listeventsfortheauthenticateduser
        description: GitHub List Events for the Authenticated User
        call: users-events.listeventsfortheauthenticateduser
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        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: users-events.listorganizationeventsfortheauthenticateduser
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        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: users-events.listpubliceventsforuser
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{username}/received-events
      name: users-username-received-events
      description: REST surface for users-username-received_events.
      operations:
      - method: GET
        name: listeventsreceivedbytheauthenticateduser
        description: GitHub List Events Received by the Authenticated User
        call: users-events.listeventsreceivedbytheauthenticateduser
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{username}/received-events/public
      name: users-username-received-events-public
      description: REST surface for users-username-received_events-public.
      operations:
      - method: GET
        name: listpubliceventsreceivedbyuser
        description: GitHub List Public Events Received by User
        call: users-events.listpubliceventsreceivedbyuser
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: users-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub User API — Events. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-list-events-authenticated-user
      description: GitHub List Events for the Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: users-events.listeventsfortheauthenticateduser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      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: users-events.listorganizationeventsfortheauthenticateduser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      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: users-events.listpubliceventsforuser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-events-received-authenticated
      description: GitHub List Events Received by the Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: users-events.listeventsreceivedbytheauthenticateduser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-public-events-received
      description: GitHub List Public Events Received by User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: users-events.listpubliceventsreceivedbyuser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.