GitHub · Capability

GitHub Repos API — Subscriptions

GitHub Repos API — Subscriptions. 3 operations. Lead operation: Get Repository Subscription. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubSubscriptions

What You Can Do

GET
Getrepositorysubscription — Get Repository Subscription
/v1/repos/{owner}/{repo}/subscription
PUT
Setrepositorysubscription — Set Repository Subscription
/v1/repos/{owner}/{repo}/subscription
DELETE
Deleterepositorysubscription — Delete Repository Subscription
/v1/repos/{owner}/{repo}/subscription

MCP Tools

get-repository-subscription

Get Repository Subscription

read-only idempotent
set-repository-subscription

Set Repository Subscription

idempotent
delete-repository-subscription

Delete Repository Subscription

idempotent

Capability Spec

temp-subscriptions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Subscriptions
  description: 'GitHub Repos API — Subscriptions. 3 operations. Lead operation: Get Repository Subscription. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Subscriptions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-subscriptions
    baseUri: ''
    description: GitHub Repos API — Subscriptions business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-subscription
      path: /repos/{owner}/{repo}/subscription
      operations:
      - name: getrepositorysubscription
        method: GET
        description: Get Repository Subscription
        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: setrepositorysubscription
        method: PUT
        description: Set Repository Subscription
        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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleterepositorysubscription
        method: DELETE
        description: Delete Repository Subscription
        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-subscriptions-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Subscriptions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/subscription
      name: repos-owner-repo-subscription
      description: REST surface for repos-owner-repo-subscription.
      operations:
      - method: GET
        name: getrepositorysubscription
        description: Get Repository Subscription
        call: temp-subscriptions.getrepositorysubscription
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setrepositorysubscription
        description: Set Repository Subscription
        call: temp-subscriptions.setrepositorysubscription
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleterepositorysubscription
        description: Delete Repository Subscription
        call: temp-subscriptions.deleterepositorysubscription
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-subscriptions-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Subscriptions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-repository-subscription
      description: Get Repository Subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-subscriptions.getrepositorysubscription
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: set-repository-subscription
      description: Set Repository Subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-subscriptions.setrepositorysubscription
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-repository-subscription
      description: Delete Repository Subscription
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-subscriptions.deleterepositorysubscription
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.