GitHub · Capability

GitHub Search API — Repositories

GitHub Search API — Repositories. 1 operations. Lead operation: GitHub Search Repositories. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubRepositories

What You Can Do

GET
Searchrepositories — GitHub Search Repositories
/v1/search/repositories

MCP Tools

github-search-repositories

GitHub Search Repositories

read-only idempotent

Capability Spec

search-repositories.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Search API — Repositories
  description: 'GitHub Search API — Repositories. 1 operations. Lead operation: GitHub Search Repositories. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Repositories
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: search-repositories
    baseUri: ''
    description: GitHub Search API — Repositories business capability. Self-contained, no shared references.
    resources:
    - name: search-repositories
      path: /search/repositories
      operations:
      - name: searchrepositories
        method: GET
        description: GitHub Search Repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search
            to specific areas of GitHub Enterprise Server. The REST
          required: true
        - name: sort
          in: query
          type: string
          description: 'Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently
            the items were `updated`. Default: [best match](https://d'
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
  exposes:
  - type: rest
    namespace: search-repositories-rest
    port: 8080
    description: REST adapter for GitHub Search API — Repositories. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/search/repositories
      name: search-repositories
      description: REST surface for search-repositories.
      operations:
      - method: GET
        name: searchrepositories
        description: GitHub Search Repositories
        call: search-repositories.searchrepositories
        with:
          q: rest.q
          sort: rest.sort
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: search-repositories-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Search API — Repositories. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: github-search-repositories
      description: GitHub Search Repositories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: search-repositories.searchrepositories
      with:
        q: tools.q
        sort: tools.sort
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.