GitHub · Capability

GitHub Repos API — Latest

GitHub Repos API — Latest. 2 operations. Lead operation: Get Latest Pages Build. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubLatest

What You Can Do

GET
Getlatestpagesbuild — Get Latest Pages Build
/v1/repos/{owner}/{repo}/pages/builds/latest
GET
Getthelatestrelease — Get The Latest Release
/v1/repos/{owner}/{repo}/releases/latest

MCP Tools

get-latest-pages-build

Get Latest Pages Build

read-only idempotent
get-latest-release

Get The Latest Release

read-only idempotent

Capability Spec

temp-latest.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Latest
  description: 'GitHub Repos API — Latest. 2 operations. Lead operation: Get Latest Pages Build. Self-contained Naftiko capability
    covering one Github business surface.'
  tags:
  - Github
  - Latest
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-latest
    baseUri: ''
    description: GitHub Repos API — Latest business capability. Self-contained, no shared references.
    resources:
    - 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-releases-latest
      path: /repos/{owner}/{repo}/releases/latest
      operations:
      - name: getthelatestrelease
        method: GET
        description: Get The Latest Release
        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-latest-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Latest. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - 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-latest.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}/releases/latest
      name: repos-owner-repo-releases-latest
      description: REST surface for repos-owner-repo-releases-latest.
      operations:
      - method: GET
        name: getthelatestrelease
        description: Get The Latest Release
        call: temp-latest.getthelatestrelease
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-latest-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Latest. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-latest-pages-build
      description: Get Latest Pages Build
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-latest.getlatestpagesbuild
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: get-latest-release
      description: Get The Latest Release
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-latest.getthelatestrelease
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.