GitHub · Capability

GitHub Repos API — Authenticated

GitHub Repos API — Authenticated. 5 operations. Lead operation: Get Repository Installation For The Authenticated App. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubAuthenticated

What You Can Do

GET
Getrepositoryinstallationfortheauthenticatedapp — Get Repository Installation For The Authenticated App
/v1/repos/{owner}/{repo}/installation
GET
Listrepositorynotificationsfortheauthenticateduser — List Repository Notifications For The Authenticated User
/v1/repos/{owner}/{repo}/notifications
GET
Listrepositoriesfortheauthenticateduser — List Repositories For The Authenticated User
/v1/user/repos
POST
Createrepositoryfortheauthenticateduser — Create Repository For The Authenticated User
/v1/user/repos
GET
Listrepositoryinvitationsfortheauthenticateduser — List Repository Invitations For The Authenticated User
/v1/user/repository-invitations

MCP Tools

get-repository-installation-authenticated-app

Get Repository Installation For The Authenticated App

read-only idempotent
list-repository-notifications-authenticated-user

List Repository Notifications For The Authenticated User

read-only idempotent
list-repositories-authenticated-user

List Repositories For The Authenticated User

read-only idempotent
create-repository-authenticated-user

Create Repository For The Authenticated User

list-repository-invitations-authenticated-user

List Repository Invitations For The Authenticated User

read-only idempotent

Capability Spec

temp-authenticated.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Authenticated
  description: 'GitHub Repos API — Authenticated. 5 operations. Lead operation: Get Repository Installation For The Authenticated
    App. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Authenticated
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-authenticated
    baseUri: ''
    description: GitHub Repos API — Authenticated business capability. Self-contained, no shared references.
    resources:
    - 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: repos-owner-repo-notifications
      path: /repos/{owner}/{repo}/notifications
      operations:
      - name: listrepositorynotificationsfortheauthenticateduser
        method: GET
        description: List Repository Notifications 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: user-repos
      path: /user/repos
      operations:
      - name: listrepositoriesfortheauthenticateduser
        method: GET
        description: List Repositories For The Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: visibility
          in: query
          type: string
          description: Limit results to repositories with the specified visibility.
        - name: affiliation
          in: query
          type: string
          description: 'Comma-separated list of values. Can include:  '
        - name: type
          in: query
          type: string
          description: Limit results to repositories of the specified type. Will cause a `422` error if used in the same request
            as **visibility** or **affiliation**.
        - name: sort
          in: query
          type: string
          description: The property to sort the results by.
        - name: direction
          in: query
          type: string
          description: 'The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`.'
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: createrepositoryfortheauthenticateduser
        method: POST
        description: Create Repository 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: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: user-repository_invitations
      path: /user/repository_invitations
      operations:
      - name: listrepositoryinvitationsfortheauthenticateduser
        method: GET
        description: List Repository Invitations 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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: temp-authenticated-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Authenticated. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - 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-authenticated.getrepositoryinstallationfortheauthenticatedapp
        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}/notifications
      name: repos-owner-repo-notifications
      description: REST surface for repos-owner-repo-notifications.
      operations:
      - method: GET
        name: listrepositorynotificationsfortheauthenticateduser
        description: List Repository Notifications For The Authenticated User
        call: temp-authenticated.listrepositorynotificationsfortheauthenticateduser
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/repos
      name: user-repos
      description: REST surface for user-repos.
      operations:
      - method: GET
        name: listrepositoriesfortheauthenticateduser
        description: List Repositories For The Authenticated User
        call: temp-authenticated.listrepositoriesfortheauthenticateduser
        with:
          visibility: rest.visibility
          affiliation: rest.affiliation
          type: rest.type
          sort: rest.sort
          direction: rest.direction
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createrepositoryfortheauthenticateduser
        description: Create Repository For The Authenticated User
        call: temp-authenticated.createrepositoryfortheauthenticateduser
        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/user/repository-invitations
      name: user-repository-invitations
      description: REST surface for user-repository_invitations.
      operations:
      - method: GET
        name: listrepositoryinvitationsfortheauthenticateduser
        description: List Repository Invitations For The Authenticated User
        call: temp-authenticated.listrepositoryinvitationsfortheauthenticateduser
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-authenticated-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Authenticated. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-repository-installation-authenticated-app
      description: Get Repository Installation For The Authenticated App
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-authenticated.getrepositoryinstallationfortheauthenticatedapp
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: list-repository-notifications-authenticated-user
      description: List Repository Notifications For The Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-authenticated.listrepositorynotificationsfortheauthenticateduser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: list-repositories-authenticated-user
      description: List Repositories For The Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-authenticated.listrepositoriesfortheauthenticateduser
      with:
        visibility: tools.visibility
        affiliation: tools.affiliation
        type: tools.type
        sort: tools.sort
        direction: tools.direction
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: create-repository-authenticated-user
      description: Create Repository For The Authenticated User
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-authenticated.createrepositoryfortheauthenticateduser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-repository-invitations-authenticated-user
      description: List Repository Invitations For The Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-authenticated.listrepositoryinvitationsfortheauthenticateduser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.