GitHub · Capability

GitHub Notifications API — Thread

GitHub Notifications API — Thread. 5 operations. Lead operation: GitHub Get Thread. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubThread

What You Can Do

GET
Getthread — GitHub Get Thread
/v1/notifications/threads/{thread-id}
PATCH
Markthreadasread — GitHub Mark Thread as Read
/v1/notifications/threads/{thread-id}
GET
Getthreadsubscriptionfortheauthenticateduser — GitHub Get Thread Subscription for the Authenticated User
/v1/notifications/threads/{thread-id}/subscription
PUT
Setthreadsubscription — GitHub Set Thread Subscription
/v1/notifications/threads/{thread-id}/subscription
DELETE
Deletethreadsubscription — GitHub Delete Thread Subscription
/v1/notifications/threads/{thread-id}/subscription

MCP Tools

github-get-thread

GitHub Get Thread

read-only idempotent
github-mark-thread-read

GitHub Mark Thread as Read

idempotent
github-get-thread-subscription-authenticated

GitHub Get Thread Subscription for the Authenticated User

read-only idempotent
github-set-thread-subscription

GitHub Set Thread Subscription

idempotent
github-delete-thread-subscription

GitHub Delete Thread Subscription

idempotent

Capability Spec

notifications-thread.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Notifications API — Thread
  description: 'GitHub Notifications API — Thread. 5 operations. Lead operation: GitHub Get Thread. Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Thread
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: notifications-thread
    baseUri: ''
    description: GitHub Notifications API — Thread business capability. Self-contained, no shared references.
    resources:
    - name: notifications-threads-thread_id
      path: /notifications/threads/{thread_id}
      operations:
      - name: getthread
        method: GET
        description: GitHub Get Thread
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: markthreadasread
        method: PATCH
        description: GitHub Mark Thread as Read
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: notifications-threads-thread_id-subscription
      path: /notifications/threads/{thread_id}/subscription
      operations:
      - name: getthreadsubscriptionfortheauthenticateduser
        method: GET
        description: GitHub Get Thread Subscription for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setthreadsubscription
        method: PUT
        description: GitHub Set Thread Subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deletethreadsubscription
        method: DELETE
        description: GitHub Delete Thread Subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: notifications-thread-rest
    port: 8080
    description: REST adapter for GitHub Notifications API — Thread. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/notifications/threads/{thread-id}
      name: notifications-threads-thread-id
      description: REST surface for notifications-threads-thread_id.
      operations:
      - method: GET
        name: getthread
        description: GitHub Get Thread
        call: notifications-thread.getthread
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: markthreadasread
        description: GitHub Mark Thread as Read
        call: notifications-thread.markthreadasread
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/notifications/threads/{thread-id}/subscription
      name: notifications-threads-thread-id-subscription
      description: REST surface for notifications-threads-thread_id-subscription.
      operations:
      - method: GET
        name: getthreadsubscriptionfortheauthenticateduser
        description: GitHub Get Thread Subscription for the Authenticated User
        call: notifications-thread.getthreadsubscriptionfortheauthenticateduser
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setthreadsubscription
        description: GitHub Set Thread Subscription
        call: notifications-thread.setthreadsubscription
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletethreadsubscription
        description: GitHub Delete Thread Subscription
        call: notifications-thread.deletethreadsubscription
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: notifications-thread-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Notifications API — Thread. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: github-get-thread
      description: GitHub Get Thread
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: notifications-thread.getthread
      outputParameters:
      - type: object
        mapping: $.
    - name: github-mark-thread-read
      description: GitHub Mark Thread as Read
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: notifications-thread.markthreadasread
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-thread-subscription-authenticated
      description: GitHub Get Thread Subscription for the Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: notifications-thread.getthreadsubscriptionfortheauthenticateduser
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-thread-subscription
      description: GitHub Set Thread Subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: notifications-thread.setthreadsubscription
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-thread-subscription
      description: GitHub Delete Thread Subscription
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: notifications-thread.deletethreadsubscription
      outputParameters:
      - type: object
        mapping: $.