GitHub · Capability

github-repos-api — Upload

github-repos-api — Upload. 1 operations. Lead operation: GitHub Upload Release Asset. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubUpload

What You Can Do

POST
Uploadreleaseasset — GitHub Upload Release Asset
/v1/repos/{owner}/{repo}/releases/{release-id}/assets

MCP Tools

github-upload-release-asset

GitHub Upload Release Asset

Capability Spec

repo-tags-upload.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Upload
  description: 'github-repos-api — Upload. 1 operations. Lead operation: GitHub Upload Release Asset. Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Upload
  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-upload
    baseUri: ''
    description: github-repos-api — Upload business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-releases-release_id-assets
      path: /repos/{owner}/{repo}/releases/{release_id}/assets
      operations:
      - name: uploadreleaseasset
        method: POST
        description: GitHub Upload Release Asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: query
          type: string
          required: true
        - name: label
          in: query
          type: string
        - 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: repo-tags-upload-rest
    port: 8080
    description: REST adapter for github-repos-api — Upload. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/releases/{release-id}/assets
      name: repos-owner-repo-releases-release-id-assets
      description: REST surface for repos-owner-repo-releases-release_id-assets.
      operations:
      - method: POST
        name: uploadreleaseasset
        description: GitHub Upload Release Asset
        call: repo-tags-upload.uploadreleaseasset
        with:
          name: rest.name
          label: rest.label
          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: repo-tags-upload-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Upload. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-upload-release-asset
      description: GitHub Upload Release Asset
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repo-tags-upload.uploadreleaseasset
      with:
        name: tools.name
        label: tools.label
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.