linear · Capability

Linear GraphQL API — Attachments

Linear GraphQL API — Attachments. 1 operations. Lead operation: Upload a file attachment. Self-contained Naftiko capability covering one Linear business surface.

Run with Naftiko LinearAttachments

What You Can Do

POST
Uploadfile — Upload a file attachment
/v1/graphql/upload

MCP Tools

upload-file-attachment

Upload a file attachment

Capability Spec

graphql-attachments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Linear GraphQL API — Attachments
  description: 'Linear GraphQL API — Attachments. 1 operations. Lead operation: Upload a file attachment. Self-contained Naftiko
    capability covering one Linear business surface.'
  tags:
  - Linear
  - Attachments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LINEAR_API_KEY: LINEAR_API_KEY
capability:
  consumes:
  - type: http
    namespace: graphql-attachments
    baseUri: https://api.linear.app/graphql
    description: Linear GraphQL API — Attachments business capability. Self-contained, no shared references.
    resources:
    - name: graphql-upload
      path: /graphql/upload
      operations:
      - name: uploadfile
        method: POST
        description: Upload a file attachment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LINEAR_API_KEY}}'
  exposes:
  - type: rest
    namespace: graphql-attachments-rest
    port: 8080
    description: REST adapter for Linear GraphQL API — Attachments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/graphql/upload
      name: graphql-upload
      description: REST surface for graphql-upload.
      operations:
      - method: POST
        name: uploadfile
        description: Upload a file attachment
        call: graphql-attachments.uploadfile
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: graphql-attachments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Linear GraphQL API — Attachments. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: upload-file-attachment
      description: Upload a file attachment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graphql-attachments.uploadfile
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.