GitHub · Capability

GitHub Repos API — Objects

GitHub Repos API — Objects. 2 operations. Lead operation: Get Commit Object. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubObjects

What You Can Do

GET
Getcommitobject — Get Commit Object
/v1/repos/{owner}/{repo}/git/commits/{commit-sha}
POST
Createtagobject — Create Tag Object
/v1/repos/{owner}/{repo}/git/tags

MCP Tools

get-commit-object

Get Commit Object

read-only idempotent
create-tag-object

Create Tag Object

Capability Spec

temp-objects.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Objects
  description: 'GitHub Repos API — Objects. 2 operations. Lead operation: Get Commit Object. Self-contained Naftiko capability
    covering one Github business surface.'
  tags:
  - Github
  - Objects
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-objects
    baseUri: ''
    description: GitHub Repos API — Objects business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-git-commits-commit_sha
      path: /repos/{owner}/{repo}/git/commits/{commit_sha}
      operations:
      - name: getcommitobject
        method: GET
        description: Get Commit Object
        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-git-tags
      path: /repos/{owner}/{repo}/git/tags
      operations:
      - name: createtagobject
        method: POST
        description: Create Tag Object
        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: temp-objects-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Objects. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/git/commits/{commit-sha}
      name: repos-owner-repo-git-commits-commit-sha
      description: REST surface for repos-owner-repo-git-commits-commit_sha.
      operations:
      - method: GET
        name: getcommitobject
        description: Get Commit Object
        call: temp-objects.getcommitobject
        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}/git/tags
      name: repos-owner-repo-git-tags
      description: REST surface for repos-owner-repo-git-tags.
      operations:
      - method: POST
        name: createtagobject
        description: Create Tag Object
        call: temp-objects.createtagobject
        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: temp-objects-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Objects. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-commit-object
      description: Get Commit Object
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-objects.getcommitobject
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: create-tag-object
      description: Create Tag Object
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-objects.createtagobject
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.