GitHub · Capability

github-repos-api — Pages

github-repos-api — Pages. 9 operations. Lead operation: GitHub Get Github Enterprise Server Pages Site. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubPages

What You Can Do

GET
Getgithubenterpriseserverpagessite — GitHub Get Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
POST
Creategithubenterpriseserverpagessite — GitHub Create Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
PUT
Updateinformationaboutgithubenterpriseserverpagessite — GitHub Update Information About Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
DELETE
Deletegithubenterpriseserverpagessite — GitHub Delete Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
GET
Listgithubenterpriseserverpagesbuilds — GitHub List Github Enterprise Server Pages Builds
/v1/repos/{owner}/{repo}/pages/builds
POST
Requestgithubenterpriseserverpagesbuild — GitHub Request Github Enterprise Server Pages Build
/v1/repos/{owner}/{repo}/pages/builds
GET
Getlatestpagesbuild — GitHub Get Latest Pages Build
/v1/repos/{owner}/{repo}/pages/builds/latest
GET
Getgithubenterpriseserverpagesbuild — GitHub Get Github Enterprise Server Pages Build
/v1/repos/{owner}/{repo}/pages/builds/{build-id}
POST
Creategithubpagesdeployment — GitHub Create Github Pages Deployment
/v1/repos/{owner}/{repo}/pages/deployments

MCP Tools

github-get-github-enterprise-server

GitHub Get Github Enterprise Server Pages Site

read-only idempotent
github-create-github-enterprise-server

GitHub Create Github Enterprise Server Pages Site

github-update-information-about-github

GitHub Update Information About Github Enterprise Server Pages Site

idempotent
github-delete-github-enterprise-server

GitHub Delete Github Enterprise Server Pages Site

idempotent
github-list-github-enterprise-server

GitHub List Github Enterprise Server Pages Builds

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

GitHub Request Github Enterprise Server Pages Build

github-get-latest-pages-build

GitHub Get Latest Pages Build

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

GitHub Get Github Enterprise Server Pages Build

read-only idempotent
github-create-github-pages-deployment

GitHub Create Github Pages Deployment

Capability Spec

repo-tags-pages.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Pages
  description: 'github-repos-api — Pages. 9 operations. Lead operation: GitHub Get Github Enterprise Server Pages Site. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Pages
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repo-tags-pages
    baseUri: ''
    description: github-repos-api — Pages business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-pages
      path: /repos/{owner}/{repo}/pages
      operations:
      - name: getgithubenterpriseserverpagessite
        method: GET
        description: GitHub Get Github Enterprise Server Pages Site
        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: creategithubenterpriseserverpagessite
        method: POST
        description: GitHub Create Github Enterprise Server Pages Site
        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: updateinformationaboutgithubenterpriseserverpagessite
        method: PUT
        description: GitHub Update Information About Github Enterprise Server Pages Site
        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: deletegithubenterpriseserverpagessite
        method: DELETE
        description: GitHub Delete Github Enterprise Server Pages Site
        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
      path: /repos/{owner}/{repo}/pages/builds
      operations:
      - name: listgithubenterpriseserverpagesbuilds
        method: GET
        description: GitHub 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: GitHub 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: GitHub 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: GitHub 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
    - name: repos-owner-repo-pages-deployments
      path: /repos/{owner}/{repo}/pages/deployments
      operations:
      - name: creategithubpagesdeployment
        method: POST
        description: GitHub Create Github Pages Deployment
        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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: repo-tags-pages-rest
    port: 8080
    description: REST adapter for github-repos-api — Pages. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/pages
      name: repos-owner-repo-pages
      description: REST surface for repos-owner-repo-pages.
      operations:
      - method: GET
        name: getgithubenterpriseserverpagessite
        description: GitHub Get Github Enterprise Server Pages Site
        call: repo-tags-pages.getgithubenterpriseserverpagessite
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: creategithubenterpriseserverpagessite
        description: GitHub Create Github Enterprise Server Pages Site
        call: repo-tags-pages.creategithubenterpriseserverpagessite
        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: updateinformationaboutgithubenterpriseserverpagessite
        description: GitHub Update Information About Github Enterprise Server Pages Site
        call: repo-tags-pages.updateinformationaboutgithubenterpriseserverpagessite
        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: deletegithubenterpriseserverpagessite
        description: GitHub Delete Github Enterprise Server Pages Site
        call: repo-tags-pages.deletegithubenterpriseserverpagessite
        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
      name: repos-owner-repo-pages-builds
      description: REST surface for repos-owner-repo-pages-builds.
      operations:
      - method: GET
        name: listgithubenterpriseserverpagesbuilds
        description: GitHub List Github Enterprise Server Pages Builds
        call: repo-tags-pages.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: GitHub Request Github Enterprise Server Pages Build
        call: repo-tags-pages.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: GitHub Get Latest Pages Build
        call: repo-tags-pages.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: GitHub Get Github Enterprise Server Pages Build
        call: repo-tags-pages.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: $.
    - path: /v1/repos/{owner}/{repo}/pages/deployments
      name: repos-owner-repo-pages-deployments
      description: REST surface for repos-owner-repo-pages-deployments.
      operations:
      - method: POST
        name: creategithubpagesdeployment
        description: GitHub Create Github Pages Deployment
        call: repo-tags-pages.creategithubpagesdeployment
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repo-tags-pages-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Pages. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-get-github-enterprise-server
      description: GitHub Get Github Enterprise Server Pages Site
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-pages.getgithubenterpriseserverpagessite
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-github-enterprise-server
      description: GitHub Create Github Enterprise Server Pages Site
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repo-tags-pages.creategithubenterpriseserverpagessite
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-information-about-github
      description: GitHub Update Information About Github Enterprise Server Pages Site
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repo-tags-pages.updateinformationaboutgithubenterpriseserverpagessite
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-github-enterprise-server
      description: GitHub Delete Github Enterprise Server Pages Site
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repo-tags-pages.deletegithubenterpriseserverpagessite
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-github-enterprise-server
      description: GitHub List Github Enterprise Server Pages Builds
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-pages.listgithubenterpriseserverpagesbuilds
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-request-github-enterprise-server
      description: GitHub Request Github Enterprise Server Pages Build
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repo-tags-pages.requestgithubenterpriseserverpagesbuild
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-latest-pages-build
      description: GitHub Get Latest Pages Build
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-pages.getlatestpagesbuild
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-github-enterprise-server-2
      description: GitHub Get Github Enterprise Server Pages Build
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-pages.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: $.
    - name: github-create-github-pages-deployment
      description: GitHub Create Github Pages Deployment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repo-tags-pages.creategithubpagesdeployment
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.