Sonatype · Capability

Sonatype Lifecycle Public REST API — Product License

Sonatype Lifecycle Public REST API — Product License. 2 operations. Lead operation: Product License. Self-contained Naftiko capability covering one Sonatype business surface.

Run with Naftiko SonatypeProduct License

What You Can Do

DELETE
Uninstalllicense — Use this method to uninstall a product license.
/v1/api/v2/product/license
POST
Installlicense — Use this method to install a product license
/v1/api/v2/product/license

MCP Tools

use-this-method-uninstall-product

Use this method to uninstall a product license.

idempotent
use-this-method-install-product

Use this method to install a product license

Capability Spec

lifecycle-product-license.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — Product License
  description: 'Sonatype Lifecycle Public REST API — Product License. 2 operations. Lead operation: Product License. Self-contained
    Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - Product License
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-product-license
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — Product License business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-product-license
      path: /api/v2/product/license
      operations:
      - name: uninstalllicense
        method: DELETE
        description: Use this method to uninstall a product license.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: installlicense
        method: POST
        description: Use this method to install a product license
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.SONATYPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lifecycle-product-license-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — Product License. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/product/license
      name: api-v2-product-license
      description: REST surface for api-v2-product-license.
      operations:
      - method: DELETE
        name: uninstalllicense
        description: Use this method to uninstall a product license.
        call: lifecycle-product-license.uninstalllicense
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: installlicense
        description: Use this method to install a product license
        call: lifecycle-product-license.installlicense
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-product-license-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — Product License. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: use-this-method-uninstall-product
      description: Use this method to uninstall a product license.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lifecycle-product-license.uninstalllicense
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-install-product
      description: Use this method to install a product license
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lifecycle-product-license.installlicense
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.