Sonatype Nexus · Capability

Sonatype Nexus Repository Manager — Product licensing

Sonatype Nexus Repository Manager — Product licensing. 3 operations. Lead operation: Uninstall license if present.. Self-contained Naftiko capability covering one Sonatype Nexus business surface.

Run with Naftiko Sonatype NexusProduct licensing

What You Can Do

DELETE
Removelicense — Uninstall license if present.
/v1/v1/system/license
GET
Getlicensestatus — Get the current license status.
/v1/v1/system/license
POST
Setlicense — Upload a new license file.
/v1/v1/system/license

MCP Tools

uninstall-license-if-present

Uninstall license if present.

idempotent
get-current-license-status

Get the current license status.

read-only idempotent
upload-new-license-file

Upload a new license file.

Capability Spec

repository-product-licensing.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Nexus Repository Manager — Product licensing
  description: 'Sonatype Nexus Repository Manager — Product licensing. 3 operations. Lead operation: Uninstall license if
    present.. Self-contained Naftiko capability covering one Sonatype Nexus business surface.'
  tags:
  - Sonatype Nexus
  - Product licensing
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_NEXUS_API_KEY: SONATYPE_NEXUS_API_KEY
capability:
  consumes:
  - type: http
    namespace: repository-product-licensing
    baseUri: ''
    description: Sonatype Nexus Repository Manager — Product licensing business capability. Self-contained, no shared references.
    resources:
    - name: v1-system-license
      path: /v1/system/license
      operations:
      - name: removelicense
        method: DELETE
        description: Uninstall license if present.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getlicensestatus
        method: GET
        description: Get the current license status.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setlicense
        method: POST
        description: Upload a new license file.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: basic
      username: '{{env.SONATYPE_NEXUS_USER}}'
      password: '{{env.SONATYPE_NEXUS_PASS}}'
  exposes:
  - type: rest
    namespace: repository-product-licensing-rest
    port: 8080
    description: REST adapter for Sonatype Nexus Repository Manager — Product licensing. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v1/system/license
      name: v1-system-license
      description: REST surface for v1-system-license.
      operations:
      - method: DELETE
        name: removelicense
        description: Uninstall license if present.
        call: repository-product-licensing.removelicense
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getlicensestatus
        description: Get the current license status.
        call: repository-product-licensing.getlicensestatus
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: setlicense
        description: Upload a new license file.
        call: repository-product-licensing.setlicense
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repository-product-licensing-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Nexus Repository Manager — Product licensing. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: uninstall-license-if-present
      description: Uninstall license if present.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repository-product-licensing.removelicense
      outputParameters:
      - type: object
        mapping: $.
    - name: get-current-license-status
      description: Get the current license status.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-product-licensing.getlicensestatus
      outputParameters:
      - type: object
        mapping: $.
    - name: upload-new-license-file
      description: Upload a new license file.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repository-product-licensing.setlicense
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.