Sonatype · Capability

Sonatype Lifecycle Public REST API — Repositories

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

Run with Naftiko SonatypeRepositories

What You Can Do

POST
Releasequarantinewithoutreeval — Use this method to release a component from quarantine by providing the `quarantineId`.
/v1/api/v2/repositories/quarantine/{quarantineid}/release
POST
Getquarantinedbypath — Use this method to retrieve the pathnames of the repository components and the corresponding quarantine status.
/v1/api/v2/repositories/{repositorymanagerinstanceid}/{repositorypublicid}/components/quarantined/pathnames

MCP Tools

use-this-method-release-component

Use this method to release a component from quarantine by providing the `quarantineId`.

use-this-method-retrieve-pathnames

Use this method to retrieve the pathnames of the repository components and the corresponding quarantine status.

read-only

Capability Spec

lifecycle-repositories.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — Repositories
  description: 'Sonatype Lifecycle Public REST API — Repositories. 2 operations. Lead operation: Repositories. Self-contained
    Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - Repositories
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-repositories
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — Repositories business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-repositories-quarantine-quarantineId-release
      path: /api/v2/repositories/quarantine/{quarantineId}/release
      operations:
      - name: releasequarantinewithoutreeval
        method: POST
        description: Use this method to release a component from quarantine by providing the `quarantineId`.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: quarantineId
          in: path
          type: string
          description: Enter the component `quarantineId`.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-repositories-repositoryManagerInstanceId-repositoryPublicId-components-qu
      path: /api/v2/repositories/{repositoryManagerInstanceId}/{repositoryPublicId}/components/quarantined/pathnames
      operations:
      - name: getquarantinedbypath
        method: POST
        description: Use this method to retrieve the pathnames of the repository components and the corresponding quarantine
          status.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repositoryManagerInstanceId
          in: path
          type: string
          description: Enter the repository manager instance ID.
          required: true
        - name: repositoryPublicId
          in: path
          type: string
          description: Enter the repository public ID.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SONATYPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lifecycle-repositories-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — Repositories. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/repositories/quarantine/{quarantineid}/release
      name: api-v2-repositories-quarantine-quarantineid-release
      description: REST surface for api-v2-repositories-quarantine-quarantineId-release.
      operations:
      - method: POST
        name: releasequarantinewithoutreeval
        description: Use this method to release a component from quarantine by providing the `quarantineId`.
        call: lifecycle-repositories.releasequarantinewithoutreeval
        with:
          quarantineId: rest.quarantineId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/repositories/{repositorymanagerinstanceid}/{repositorypublicid}/components/quarantined/pathnames
      name: api-v2-repositories-repositorymanagerinstanceid-repositorypublicid-components-qu
      description: REST surface for api-v2-repositories-repositoryManagerInstanceId-repositoryPublicId-components-qu.
      operations:
      - method: POST
        name: getquarantinedbypath
        description: Use this method to retrieve the pathnames of the repository components and the corresponding quarantine
          status.
        call: lifecycle-repositories.getquarantinedbypath
        with:
          repositoryManagerInstanceId: rest.repositoryManagerInstanceId
          repositoryPublicId: rest.repositoryPublicId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-repositories-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — Repositories. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: use-this-method-release-component
      description: Use this method to release a component from quarantine by providing the `quarantineId`.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lifecycle-repositories.releasequarantinewithoutreeval
      with:
        quarantineId: tools.quarantineId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-retrieve-pathnames
      description: Use this method to retrieve the pathnames of the repository components and the corresponding quarantine
        status.
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: lifecycle-repositories.getquarantinedbypath
      with:
        repositoryManagerInstanceId: tools.repositoryManagerInstanceId
        repositoryPublicId: tools.repositoryPublicId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.