GitHub · Capability

GitHub Repos API — Builds

GitHub Repos API — Builds. 4 operations. Lead operation: List Github Enterprise Server Pages Builds. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubBuilds

What You Can Do

GET
Listgithubenterpriseserverpagesbuilds — List Github Enterprise Server Pages Builds
/v1/repos/{owner}/{repo}/pages/builds
POST
Requestgithubenterpriseserverpagesbuild — Request Github Enterprise Server Pages Build
/v1/repos/{owner}/{repo}/pages/builds
GET
Getlatestpagesbuild — Get Latest Pages Build
/v1/repos/{owner}/{repo}/pages/builds/latest
GET
Getgithubenterpriseserverpagesbuild — Get Github Enterprise Server Pages Build
/v1/repos/{owner}/{repo}/pages/builds/{build-id}

MCP Tools

list-github-enterprise-server-pages

List Github Enterprise Server Pages Builds

read-only idempotent
request-github-enterprise-server-pages

Request Github Enterprise Server Pages Build

get-latest-pages-build

Get Latest Pages Build

read-only idempotent
get-github-enterprise-server-pages

Get Github Enterprise Server Pages Build

read-only idempotent

Capability Spec

temp-builds.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Builds
  description: 'GitHub Repos API — Builds. 4 operations. Lead operation: List Github Enterprise Server Pages Builds. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Builds
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-builds
    baseUri: ''
    description: GitHub Repos API — Builds business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-pages-builds
      path: /repos/{owner}/{repo}/pages/builds
      operations:
      - name: listgithubenterpriseserverpagesbuilds
        method: GET
        description: List Github Enterprise Server Pages Builds
        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: requestgithubenterpriseserverpagesbuild
        method: POST
        description: Request Github Enterprise Server Pages Build
        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-pages-builds-latest
      path: /repos/{owner}/{repo}/pages/builds/latest
      operations:
      - name: getlatestpagesbuild
        method: GET
        description: Get Latest Pages Build
        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-pages-builds-build_id
      path: /repos/{owner}/{repo}/pages/builds/{build_id}
      operations:
      - name: getgithubenterpriseserverpagesbuild
        method: GET
        description: Get Github Enterprise Server Pages Build
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: build_id
          in: path
          type: integer
          required: true
        - 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-builds-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Builds. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/pages/builds
      name: repos-owner-repo-pages-builds
      description: REST surface for repos-owner-repo-pages-builds.
      operations:
      - method: GET
        name: listgithubenterpriseserverpagesbuilds
        description: List Github Enterprise Server Pages Builds
        call: temp-builds.listgithubenterpriseserverpagesbuilds
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: requestgithubenterpriseserverpagesbuild
        description: Request Github Enterprise Server Pages Build
        call: temp-builds.requestgithubenterpriseserverpagesbuild
        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}/pages/builds/latest
      name: repos-owner-repo-pages-builds-latest
      description: REST surface for repos-owner-repo-pages-builds-latest.
      operations:
      - method: GET
        name: getlatestpagesbuild
        description: Get Latest Pages Build
        call: temp-builds.getlatestpagesbuild
        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}/pages/builds/{build-id}
      name: repos-owner-repo-pages-builds-build-id
      description: REST surface for repos-owner-repo-pages-builds-build_id.
      operations:
      - method: GET
        name: getgithubenterpriseserverpagesbuild
        description: Get Github Enterprise Server Pages Build
        call: temp-builds.getgithubenterpriseserverpagesbuild
        with:
          build_id: rest.build_id
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-builds-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Builds. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-github-enterprise-server-pages
      description: List Github Enterprise Server Pages Builds
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-builds.listgithubenterpriseserverpagesbuilds
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: request-github-enterprise-server-pages
      description: Request Github Enterprise Server Pages Build
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-builds.requestgithubenterpriseserverpagesbuild
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: get-latest-pages-build
      description: Get Latest Pages Build
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-builds.getlatestpagesbuild
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: get-github-enterprise-server-pages
      description: Get Github Enterprise Server Pages Build
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-builds.getgithubenterpriseserverpagesbuild
      with:
        build_id: tools.build_id
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.