GitHub · Capability

GitHub Search API — Requests

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

Run with Naftiko GithubRequests

What You Can Do

GET
Searchissuesandpullrequests — GitHub Search Issues and Pull Requests
/v1/search/issues

MCP Tools

github-search-issues-and-pull

GitHub Search Issues and Pull Requests

read-only idempotent

Capability Spec

search-requests.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Search API — Requests
  description: 'GitHub Search API — Requests. 1 operations. Lead operation: GitHub Search Issues and Pull Requests. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Requests
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: search-requests
    baseUri: ''
    description: GitHub Search API — Requests business capability. Self-contained, no shared references.
    resources:
    - name: search-issues
      path: /search/issues
      operations:
      - name: searchissuesandpullrequests
        method: GET
        description: GitHub Search Issues and Pull Requests
        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 the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`,
            `reactions-smile`, `reactions-thinking_face`, `reactio
        - 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-requests-rest
    port: 8080
    description: REST adapter for GitHub Search API — Requests. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/search/issues
      name: search-issues
      description: REST surface for search-issues.
      operations:
      - method: GET
        name: searchissuesandpullrequests
        description: GitHub Search Issues and Pull Requests
        call: search-requests.searchissuesandpullrequests
        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-requests-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Search API — Requests. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: github-search-issues-and-pull
      description: GitHub Search Issues and Pull Requests
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: search-requests.searchissuesandpullrequests
      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: $.