GitHub · Capability

github-repo-hooks-api — Get

github-repo-hooks-api — Get. 4 operations. Lead operation: GitHub Get Repository Webhook. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubGet

What You Can Do

GET
Getrepositorywebhook — GitHub Get Repository Webhook
/v1/repos/{owner}/{repo}/hooks/{hook-id}
GET
Getwebhookconfigurationforrepository — GitHub Get Webhook Configuration for Repository
/v1/repos/{owner}/{repo}/hooks/{hook-id}/config
GET
Getdeliveryforrepositorywebhook — GitHub Get Delivery for Repository Webhook
/v1/repos/{owner}/{repo}/hooks/{hook-id}/deliveries/{delivery-id}
GET
Getprereceivehookforrepository — GitHub Get Pre-receive Hook for Repository
/v1/repos/{owner}/{repo}/pre-receive-hooks/{pre-receive-hook-id}

MCP Tools

github-get-repository-webhook

GitHub Get Repository Webhook

read-only idempotent
github-get-webhook-configuration-repository

GitHub Get Webhook Configuration for Repository

read-only idempotent
github-get-delivery-repository-webhook

GitHub Get Delivery for Repository Webhook

read-only idempotent
github-get-pre-receive-hook

GitHub Get Pre-receive Hook for Repository

read-only idempotent

Capability Spec

repo-hooks-get.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repo-hooks-api — Get
  description: 'github-repo-hooks-api — Get. 4 operations. Lead operation: GitHub Get Repository Webhook. Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Get
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repo-hooks-get
    baseUri: ''
    description: github-repo-hooks-api — Get business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-hooks-hook_id
      path: /repos/{owner}/{repo}/hooks/{hook_id}
      operations:
      - name: getrepositorywebhook
        method: GET
        description: GitHub Get Repository Webhook
        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-hooks-hook_id-config
      path: /repos/{owner}/{repo}/hooks/{hook_id}/config
      operations:
      - name: getwebhookconfigurationforrepository
        method: GET
        description: GitHub Get Webhook Configuration 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-hooks-hook_id-deliveries-delivery_id
      path: /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}
      operations:
      - name: getdeliveryforrepositorywebhook
        method: GET
        description: GitHub Get Delivery for Repository Webhook
        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-pre-receive-hooks-pre_receive_hook_id
      path: /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}
      operations:
      - name: getprereceivehookforrepository
        method: GET
        description: GitHub Get Pre-receive Hook 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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: repo-hooks-get-rest
    port: 8080
    description: REST adapter for github-repo-hooks-api — Get. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/hooks/{hook-id}
      name: repos-owner-repo-hooks-hook-id
      description: REST surface for repos-owner-repo-hooks-hook_id.
      operations:
      - method: GET
        name: getrepositorywebhook
        description: GitHub Get Repository Webhook
        call: repo-hooks-get.getrepositorywebhook
        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}/hooks/{hook-id}/config
      name: repos-owner-repo-hooks-hook-id-config
      description: REST surface for repos-owner-repo-hooks-hook_id-config.
      operations:
      - method: GET
        name: getwebhookconfigurationforrepository
        description: GitHub Get Webhook Configuration for Repository
        call: repo-hooks-get.getwebhookconfigurationforrepository
        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}/hooks/{hook-id}/deliveries/{delivery-id}
      name: repos-owner-repo-hooks-hook-id-deliveries-delivery-id
      description: REST surface for repos-owner-repo-hooks-hook_id-deliveries-delivery_id.
      operations:
      - method: GET
        name: getdeliveryforrepositorywebhook
        description: GitHub Get Delivery for Repository Webhook
        call: repo-hooks-get.getdeliveryforrepositorywebhook
        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}/pre-receive-hooks/{pre-receive-hook-id}
      name: repos-owner-repo-pre-receive-hooks-pre-receive-hook-id
      description: REST surface for repos-owner-repo-pre-receive-hooks-pre_receive_hook_id.
      operations:
      - method: GET
        name: getprereceivehookforrepository
        description: GitHub Get Pre-receive Hook for Repository
        call: repo-hooks-get.getprereceivehookforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repo-hooks-get-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repo-hooks-api — Get. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: github-get-repository-webhook
      description: GitHub Get Repository Webhook
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-hooks-get.getrepositorywebhook
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-webhook-configuration-repository
      description: GitHub Get Webhook Configuration for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-hooks-get.getwebhookconfigurationforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-delivery-repository-webhook
      description: GitHub Get Delivery for Repository Webhook
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-hooks-get.getdeliveryforrepositorywebhook
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-pre-receive-hook
      description: GitHub Get Pre-receive Hook for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-hooks-get.getprereceivehookforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.