Sonatype Nexus · Capability

Sonatype Nexus Repository Manager — assets

Sonatype Nexus Repository Manager — assets. 3 operations. Lead operation: List assets. Self-contained Naftiko capability covering one Sonatype Nexus business surface.

Run with Naftiko Sonatype Nexusassets

What You Can Do

GET
Getassets — List assets
/v1/v1/assets
DELETE
Deleteasset — Delete a single asset
/v1/v1/assets/{id}
GET
Getassetbyid — Get a single asset
/v1/v1/assets/{id}

MCP Tools

list-assets

List assets

read-only idempotent
delete-single-asset

Delete a single asset

idempotent
get-single-asset

Get a single asset

read-only idempotent

Capability Spec

repository-assets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Nexus Repository Manager — assets
  description: 'Sonatype Nexus Repository Manager — assets. 3 operations. Lead operation: List assets. Self-contained Naftiko
    capability covering one Sonatype Nexus business surface.'
  tags:
  - Sonatype Nexus
  - assets
  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-assets
    baseUri: ''
    description: Sonatype Nexus Repository Manager — assets business capability. Self-contained, no shared references.
    resources:
    - name: v1-assets
      path: /v1/assets
      operations:
      - name: getassets
        method: GET
        description: List assets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: continuationToken
          in: query
          type: string
          description: A token returned by a prior request. If present, the next page of results are returned
        - name: repository
          in: query
          type: string
          description: Repository from which you would like to retrieve assets.
          required: true
    - name: v1-assets-id
      path: /v1/assets/{id}
      operations:
      - name: deleteasset
        method: DELETE
        description: Delete a single asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Id of the asset to delete
          required: true
      - name: getassetbyid
        method: GET
        description: Get a single asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Id of the asset to get
          required: true
    authentication:
      type: basic
      username: '{{env.SONATYPE_NEXUS_USER}}'
      password: '{{env.SONATYPE_NEXUS_PASS}}'
  exposes:
  - type: rest
    namespace: repository-assets-rest
    port: 8080
    description: REST adapter for Sonatype Nexus Repository Manager — assets. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/assets
      name: v1-assets
      description: REST surface for v1-assets.
      operations:
      - method: GET
        name: getassets
        description: List assets
        call: repository-assets.getassets
        with:
          continuationToken: rest.continuationToken
          repository: rest.repository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/assets/{id}
      name: v1-assets-id
      description: REST surface for v1-assets-id.
      operations:
      - method: DELETE
        name: deleteasset
        description: Delete a single asset
        call: repository-assets.deleteasset
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getassetbyid
        description: Get a single asset
        call: repository-assets.getassetbyid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repository-assets-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Nexus Repository Manager — assets. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-assets
      description: List assets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-assets.getassets
      with:
        continuationToken: tools.continuationToken
        repository: tools.repository
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-single-asset
      description: Delete a single asset
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repository-assets.deleteasset
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: get-single-asset
      description: Get a single asset
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-assets.getassetbyid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.