GitHub · Capability

GitHub Repos API — Servers

GitHub Repos API — Servers. 7 operations. Lead operation: Get Github Enterprise Server Pages Site. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubServers

What You Can Do

GET
Getgithubenterpriseserverpagessite — Get Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
POST
Creategithubenterpriseserverpagessite — Create Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
PUT
Updateinformationaboutgithubenterpriseserverpagessite — Update Information About Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
DELETE
Deletegithubenterpriseserverpagessite — Delete Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
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
Getgithubenterpriseserverpagesbuild — Get Github Enterprise Server Pages Build
/v1/repos/{owner}/{repo}/pages/builds/{build-id}

MCP Tools

get-github-enterprise-server-pages

Get Github Enterprise Server Pages Site

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

Create Github Enterprise Server Pages Site

update-information-about-github-enterprise

Update Information About Github Enterprise Server Pages Site

idempotent
delete-github-enterprise-server-pages

Delete Github Enterprise Server Pages Site

idempotent
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-github-enterprise-server-pages-2

Get Github Enterprise Server Pages Build

read-only idempotent

Capability Spec

temp-servers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Servers
  description: 'GitHub Repos API — Servers. 7 operations. Lead operation: Get Github Enterprise Server Pages Site. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Servers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-servers
    baseUri: ''
    description: GitHub Repos API — Servers business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-pages
      path: /repos/{owner}/{repo}/pages
      operations:
      - name: getgithubenterpriseserverpagessite
        method: GET
        description: 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: 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: 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: 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: 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-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-servers-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Servers. 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: Get Github Enterprise Server Pages Site
        call: temp-servers.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: Create Github Enterprise Server Pages Site
        call: temp-servers.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: Update Information About Github Enterprise Server Pages Site
        call: temp-servers.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: Delete Github Enterprise Server Pages Site
        call: temp-servers.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: List Github Enterprise Server Pages Builds
        call: temp-servers.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-servers.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/{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-servers.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-servers-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Servers. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-github-enterprise-server-pages
      description: Get Github Enterprise Server Pages Site
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-servers.getgithubenterpriseserverpagessite
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: create-github-enterprise-server-pages
      description: Create Github Enterprise Server Pages Site
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-servers.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: update-information-about-github-enterprise
      description: Update Information About Github Enterprise Server Pages Site
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-servers.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: delete-github-enterprise-server-pages
      description: Delete Github Enterprise Server Pages Site
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-servers.deletegithubenterpriseserverpagessite
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: list-github-enterprise-server-pages
      description: List Github Enterprise Server Pages Builds
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-servers.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-servers.requestgithubenterpriseserverpagesbuild
      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-2
      description: Get Github Enterprise Server Pages Build
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-servers.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: $.