GitHub · Capability

github-repos-api — Public

github-repos-api — Public. 2 operations. Lead operation: GitHub Get an Environment Public Key. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubPublic

What You Can Do

GET
Getanenvironmentpublickey — GitHub Get an Environment Public Key
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/public-key
GET
Listpublicrepositories — GitHub List Public Repositories
/v1/repositories

MCP Tools

github-get-environment-public-key

GitHub Get an Environment Public Key

read-only idempotent
github-list-public-repositories

GitHub List Public Repositories

read-only idempotent

Capability Spec

repo-tags-public.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Public
  description: 'github-repos-api — Public. 2 operations. Lead operation: GitHub Get an Environment Public Key. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Public
  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-public
    baseUri: ''
    description: github-repos-api — Public business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-environments-environment_name-secrets-public-key
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key
      operations:
      - name: getanenvironmentpublickey
        method: GET
        description: GitHub Get an Environment Public Key
        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: repositories
      path: /repositories
      operations:
      - name: listpublicrepositories
        method: GET
        description: GitHub List Public Repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: visibility
          in: query
          type: string
          description: Specifies the types of repositories to return. This endpoint will only list repositories available
            to all users on the enterprise.
        - 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: repo-tags-public-rest
    port: 8080
    description: REST adapter for github-repos-api — Public. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/public-key
      name: repos-owner-repo-environments-environment-name-secrets-public-key
      description: REST surface for repos-owner-repo-environments-environment_name-secrets-public-key.
      operations:
      - method: GET
        name: getanenvironmentpublickey
        description: GitHub Get an Environment Public Key
        call: repo-tags-public.getanenvironmentpublickey
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories
      name: repositories
      description: REST surface for repositories.
      operations:
      - method: GET
        name: listpublicrepositories
        description: GitHub List Public Repositories
        call: repo-tags-public.listpublicrepositories
        with:
          visibility: rest.visibility
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repo-tags-public-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Public. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-get-environment-public-key
      description: GitHub Get an Environment Public Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-public.getanenvironmentpublickey
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-public-repositories
      description: GitHub List Public Repositories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-public.listpublicrepositories
      with:
        visibility: tools.visibility
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.