Sonatype Nexus · Capability

Sonatype Nexus Repository Manager — Lifecycle

Sonatype Nexus Repository Manager — Lifecycle. 3 operations. Lead operation: Bounce lifecycle phase. Self-contained Naftiko capability covering one Sonatype Nexus business surface.

Run with Naftiko Sonatype NexusLifecycle

What You Can Do

PUT
Bounce — Bounce lifecycle phase
/v1/v1/lifecycle/bounce
GET
Getphase — Get current lifecycle phase
/v1/v1/lifecycle/phase
PUT
Setphase — Move to new lifecycle phase
/v1/v1/lifecycle/phase

MCP Tools

bounce-lifecycle-phase

Bounce lifecycle phase

idempotent
get-current-lifecycle-phase

Get current lifecycle phase

read-only idempotent
move-new-lifecycle-phase

Move to new lifecycle phase

idempotent

Capability Spec

repository-lifecycle.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Nexus Repository Manager — Lifecycle
  description: 'Sonatype Nexus Repository Manager — Lifecycle. 3 operations. Lead operation: Bounce lifecycle phase. Self-contained
    Naftiko capability covering one Sonatype Nexus business surface.'
  tags:
  - Sonatype Nexus
  - Lifecycle
  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-lifecycle
    baseUri: ''
    description: Sonatype Nexus Repository Manager — Lifecycle business capability. Self-contained, no shared references.
    resources:
    - name: v1-lifecycle-bounce
      path: /v1/lifecycle/bounce
      operations:
      - name: bounce
        method: PUT
        description: Bounce lifecycle phase
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-lifecycle-phase
      path: /v1/lifecycle/phase
      operations:
      - name: getphase
        method: GET
        description: Get current lifecycle phase
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setphase
        method: PUT
        description: Move to new lifecycle phase
        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-lifecycle-rest
    port: 8080
    description: REST adapter for Sonatype Nexus Repository Manager — Lifecycle. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/lifecycle/bounce
      name: v1-lifecycle-bounce
      description: REST surface for v1-lifecycle-bounce.
      operations:
      - method: PUT
        name: bounce
        description: Bounce lifecycle phase
        call: repository-lifecycle.bounce
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/lifecycle/phase
      name: v1-lifecycle-phase
      description: REST surface for v1-lifecycle-phase.
      operations:
      - method: GET
        name: getphase
        description: Get current lifecycle phase
        call: repository-lifecycle.getphase
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setphase
        description: Move to new lifecycle phase
        call: repository-lifecycle.setphase
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repository-lifecycle-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Nexus Repository Manager — Lifecycle. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: bounce-lifecycle-phase
      description: Bounce lifecycle phase
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repository-lifecycle.bounce
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-current-lifecycle-phase
      description: Get current lifecycle phase
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-lifecycle.getphase
      outputParameters:
      - type: object
        mapping: $.
    - name: move-new-lifecycle-phase
      description: Move to new lifecycle phase
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repository-lifecycle.setphase
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.