GitHub · Capability

GitHub v3 REST API — Gitignore

GitHub v3 REST API — Gitignore. 2 operations. Lead operation: GitHub Get All Gitignore Templates. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubGitignore

What You Can Do

GET
Gitignoregetalltemplates — GitHub Get All Gitignore Templates
/v1/gitignore/templates
GET
Gitignoregettemplate — GitHub Get a Gitignore Template
/v1/gitignore/templates/{name}

MCP Tools

github-get-all-gitignore-templates

GitHub Get All Gitignore Templates

read-only idempotent
github-get-gitignore-template

GitHub Get a Gitignore Template

read-only idempotent

Capability Spec

github-gitignore.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub v3 REST API — Gitignore
  description: 'GitHub v3 REST API — Gitignore. 2 operations. Lead operation: GitHub Get All Gitignore Templates. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Gitignore
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: github-gitignore
    baseUri: ''
    description: GitHub v3 REST API — Gitignore business capability. Self-contained, no shared references.
    resources:
    - name: gitignore-templates
      path: /gitignore/templates
      operations:
      - name: gitignoregetalltemplates
        method: GET
        description: GitHub Get All Gitignore Templates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: gitignore-templates-name
      path: /gitignore/templates/{name}
      operations:
      - name: gitignoregettemplate
        method: GET
        description: GitHub Get a Gitignore Template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: github-gitignore-rest
    port: 8080
    description: REST adapter for GitHub v3 REST API — Gitignore. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/gitignore/templates
      name: gitignore-templates
      description: REST surface for gitignore-templates.
      operations:
      - method: GET
        name: gitignoregetalltemplates
        description: GitHub Get All Gitignore Templates
        call: github-gitignore.gitignoregetalltemplates
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gitignore/templates/{name}
      name: gitignore-templates-name
      description: REST surface for gitignore-templates-name.
      operations:
      - method: GET
        name: gitignoregettemplate
        description: GitHub Get a Gitignore Template
        call: github-gitignore.gitignoregettemplate
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: github-gitignore-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub v3 REST API — Gitignore. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: github-get-all-gitignore-templates
      description: GitHub Get All Gitignore Templates
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-gitignore.gitignoregetalltemplates
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-gitignore-template
      description: GitHub Get a Gitignore Template
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-gitignore.gitignoregettemplate
      with:
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.