GitHub · Capability

GitHub Issues API — Add

GitHub Issues API — Add. 2 operations. Lead operation: GitHub Add Assignees to an Issue. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubAdd

What You Can Do

POST
Addassigneestoanissue — GitHub Add Assignees to an Issue
/v1/repos/{owner}/{repo}/issues/{issue-number}/assignees
POST
Addlabelstoanissue — GitHub Add Labels to an Issue
/v1/repos/{owner}/{repo}/issues/{issue-number}/labels

MCP Tools

github-add-assignees-issue

GitHub Add Assignees to an Issue

github-add-labels-issue

GitHub Add Labels to an Issue

Capability Spec

issues-add.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Issues API — Add
  description: 'GitHub Issues API — Add. 2 operations. Lead operation: GitHub Add Assignees to an Issue. Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Add
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: issues-add
    baseUri: ''
    description: GitHub Issues API — Add business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-issues-issue_number-assignees
      path: /repos/{owner}/{repo}/issues/{issue_number}/assignees
      operations:
      - name: addassigneestoanissue
        method: POST
        description: GitHub Add Assignees to an Issue
        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: false
    - name: repos-owner-repo-issues-issue_number-labels
      path: /repos/{owner}/{repo}/issues/{issue_number}/labels
      operations:
      - name: addlabelstoanissue
        method: POST
        description: GitHub Add Labels to an Issue
        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: false
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: issues-add-rest
    port: 8080
    description: REST adapter for GitHub Issues API — Add. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/issues/{issue-number}/assignees
      name: repos-owner-repo-issues-issue-number-assignees
      description: REST surface for repos-owner-repo-issues-issue_number-assignees.
      operations:
      - method: POST
        name: addassigneestoanissue
        description: GitHub Add Assignees to an Issue
        call: issues-add.addassigneestoanissue
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/issues/{issue-number}/labels
      name: repos-owner-repo-issues-issue-number-labels
      description: REST surface for repos-owner-repo-issues-issue_number-labels.
      operations:
      - method: POST
        name: addlabelstoanissue
        description: GitHub Add Labels to an Issue
        call: issues-add.addlabelstoanissue
        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: issues-add-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Issues API — Add. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-add-assignees-issue
      description: GitHub Add Assignees to an Issue
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: issues-add.addassigneestoanissue
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-labels-issue
      description: GitHub Add Labels to an Issue
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: issues-add.addlabelstoanissue
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.