GitHub · Capability

GitHub Repos API — Applications

GitHub Repos API — Applications. 9 operations. Lead operation: List Repositories Accessible To The App Installation. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubApplications

What You Can Do

GET
Listrepositoriesaccessibletotheappinstallation — List Repositories Accessible To The App Installation
/v1/installation/repositories
GET
Listrunnerapplicationsforrepository — List Runner Applications For Repository
/v1/repos/{owner}/{repo}/actions/runners/downloads
GET
Getappswithaccesstotheprotectedbranch — Get Apps With Access To The Protected Branch
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
POST
Addappaccessrestrictions — Add App Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
PUT
Setappaccessrestrictions — Set App Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
DELETE
Removeappaccessrestrictions — Remove App Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
GET
Getrepositoryinstallationfortheauthenticatedapp — Get Repository Installation For The Authenticated App
/v1/repos/{owner}/{repo}/installation
PUT
Addrepositorytoanappinstallation — Add Repository To An App Installation
/v1/user/installations/{installation-id}/repositories/{repository-id}
DELETE
Removerepositoryfromanappinstallation — Remove Repository From An App Installation
/v1/user/installations/{installation-id}/repositories/{repository-id}

MCP Tools

list-repositories-accessible-app-installation

List Repositories Accessible To The App Installation

read-only idempotent
list-runner-applications-repository

List Runner Applications For Repository

read-only idempotent
get-apps-access-protected-branch

Get Apps With Access To The Protected Branch

read-only idempotent
add-app-access-restrictions

Add App Access Restrictions

set-app-access-restrictions

Set App Access Restrictions

idempotent
remove-app-access-restrictions

Remove App Access Restrictions

idempotent
get-repository-installation-authenticated-app

Get Repository Installation For The Authenticated App

read-only idempotent
add-repository-app-installation

Add Repository To An App Installation

idempotent
remove-repository-app-installation

Remove Repository From An App Installation

idempotent

Capability Spec

temp-applications.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Applications
  description: 'GitHub Repos API — Applications. 9 operations. Lead operation: List Repositories Accessible To The App Installation.
    Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Applications
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-applications
    baseUri: ''
    description: GitHub Repos API — Applications business capability. Self-contained, no shared references.
    resources:
    - name: installation-repositories
      path: /installation/repositories
      operations:
      - name: listrepositoriesaccessibletotheappinstallation
        method: GET
        description: List Repositories Accessible To The App Installation
        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-actions-runners-downloads
      path: /repos/{owner}/{repo}/actions/runners/downloads
      operations:
      - name: listrunnerapplicationsforrepository
        method: GET
        description: List Runner Applications 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-branches-branch-protection-restrictions-apps
      path: /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
      operations:
      - name: getappswithaccesstotheprotectedbranch
        method: GET
        description: Get Apps With Access To The Protected Branch
        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: addappaccessrestrictions
        method: POST
        description: Add App Access Restrictions
        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: setappaccessrestrictions
        method: PUT
        description: Set App Access Restrictions
        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: removeappaccessrestrictions
        method: DELETE
        description: Remove App Access Restrictions
        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: repos-owner-repo-installation
      path: /repos/{owner}/{repo}/installation
      operations:
      - name: getrepositoryinstallationfortheauthenticatedapp
        method: GET
        description: Get Repository Installation For The Authenticated App
        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: user-installations-installation_id-repositories-repository_id
      path: /user/installations/{installation_id}/repositories/{repository_id}
      operations:
      - name: addrepositorytoanappinstallation
        method: PUT
        description: Add Repository To An App Installation
        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: removerepositoryfromanappinstallation
        method: DELETE
        description: Remove Repository From An App Installation
        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-applications-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Applications. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/installation/repositories
      name: installation-repositories
      description: REST surface for installation-repositories.
      operations:
      - method: GET
        name: listrepositoriesaccessibletotheappinstallation
        description: List Repositories Accessible To The App Installation
        call: temp-applications.listrepositoriesaccessibletotheappinstallation
        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}/actions/runners/downloads
      name: repos-owner-repo-actions-runners-downloads
      description: REST surface for repos-owner-repo-actions-runners-downloads.
      operations:
      - method: GET
        name: listrunnerapplicationsforrepository
        description: List Runner Applications For Repository
        call: temp-applications.listrunnerapplicationsforrepository
        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}/branches/{branch}/protection/restrictions/apps
      name: repos-owner-repo-branches-branch-protection-restrictions-apps
      description: REST surface for repos-owner-repo-branches-branch-protection-restrictions-apps.
      operations:
      - method: GET
        name: getappswithaccesstotheprotectedbranch
        description: Get Apps With Access To The Protected Branch
        call: temp-applications.getappswithaccesstotheprotectedbranch
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addappaccessrestrictions
        description: Add App Access Restrictions
        call: temp-applications.addappaccessrestrictions
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setappaccessrestrictions
        description: Set App Access Restrictions
        call: temp-applications.setappaccessrestrictions
        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: removeappaccessrestrictions
        description: Remove App Access Restrictions
        call: temp-applications.removeappaccessrestrictions
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/installation
      name: repos-owner-repo-installation
      description: REST surface for repos-owner-repo-installation.
      operations:
      - method: GET
        name: getrepositoryinstallationfortheauthenticatedapp
        description: Get Repository Installation For The Authenticated App
        call: temp-applications.getrepositoryinstallationfortheauthenticatedapp
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/installations/{installation-id}/repositories/{repository-id}
      name: user-installations-installation-id-repositories-repository-id
      description: REST surface for user-installations-installation_id-repositories-repository_id.
      operations:
      - method: PUT
        name: addrepositorytoanappinstallation
        description: Add Repository To An App Installation
        call: temp-applications.addrepositorytoanappinstallation
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removerepositoryfromanappinstallation
        description: Remove Repository From An App Installation
        call: temp-applications.removerepositoryfromanappinstallation
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-applications-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Applications. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-repositories-accessible-app-installation
      description: List Repositories Accessible To The App Installation
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-applications.listrepositoriesaccessibletotheappinstallation
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: list-runner-applications-repository
      description: List Runner Applications For Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-applications.listrunnerapplicationsforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: get-apps-access-protected-branch
      description: Get Apps With Access To The Protected Branch
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-applications.getappswithaccesstotheprotectedbranch
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: add-app-access-restrictions
      description: Add App Access Restrictions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-applications.addappaccessrestrictions
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: set-app-access-restrictions
      description: Set App Access Restrictions
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-applications.setappaccessrestrictions
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-app-access-restrictions
      description: Remove App Access Restrictions
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-applications.removeappaccessrestrictions
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-repository-installation-authenticated-app
      description: Get Repository Installation For The Authenticated App
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-applications.getrepositoryinstallationfortheauthenticatedapp
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: add-repository-app-installation
      description: Add Repository To An App Installation
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-applications.addrepositorytoanappinstallation
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-repository-app-installation
      description: Remove Repository From An App Installation
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-applications.removerepositoryfromanappinstallation
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.