Sonatype · Capability

Sonatype Lifecycle Public REST API — CI Configuration

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

Run with Naftiko SonatypeCI Configuration

What You Can Do

DELETE
Deleteconfiguration — Use this method to delete CI integration configuration for the specified owner.
/v1/api/v2/config/ci/{ownertype}/{ownerid}
GET
Getconfiguration — Use this method to retrieve CI integration configuration for the specified owner.
/v1/api/v2/config/ci/{ownertype}/{ownerid}
PUT
Setconfiguration — Use this method to create or update CI integration configuration for the specified owner.
/v1/api/v2/config/ci/{ownertype}/{ownerid}

MCP Tools

use-this-method-delete-ci

Use this method to delete CI integration configuration for the specified owner.

idempotent
use-this-method-retrieve-ci

Use this method to retrieve CI integration configuration for the specified owner.

read-only idempotent
use-this-method-create-update

Use this method to create or update CI integration configuration for the specified owner.

idempotent

Capability Spec

lifecycle-ci-configuration.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — CI Configuration
  description: 'Sonatype Lifecycle Public REST API — CI Configuration. 3 operations. Lead operation: CI Configuration. Self-contained
    Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - CI Configuration
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-ci-configuration
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — CI Configuration business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-config-ci-ownerType-ownerId
      path: /api/v2/config/ci/{ownerType}/{ownerId}
      operations:
      - name: deleteconfiguration
        method: DELETE
        description: Use this method to delete CI integration configuration for the specified owner.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ownerType
          in: path
          type: string
          description: The owner type (application or organization)
          required: true
        - name: ownerId
          in: path
          type: string
          description: The internal ID of the owner
          required: true
      - name: getconfiguration
        method: GET
        description: Use this method to retrieve CI integration configuration for the specified owner.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ownerType
          in: path
          type: string
          description: The owner type (application or organization)
          required: true
        - name: ownerId
          in: path
          type: string
          description: The internal ID of the owner
          required: true
        - name: direct
          in: query
          type: boolean
          description: Set to true to retrieve only direct configuration, false (default) to retrieve merged configuration
            from hierarchy
      - name: setconfiguration
        method: PUT
        description: Use this method to create or update CI integration configuration for the specified owner.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ownerType
          in: path
          type: string
          description: The owner type (application or organization)
          required: true
        - name: ownerId
          in: path
          type: string
          description: The internal ID of the owner
          required: true
        - 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-ci-configuration-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — CI Configuration. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/config/ci/{ownertype}/{ownerid}
      name: api-v2-config-ci-ownertype-ownerid
      description: REST surface for api-v2-config-ci-ownerType-ownerId.
      operations:
      - method: DELETE
        name: deleteconfiguration
        description: Use this method to delete CI integration configuration for the specified owner.
        call: lifecycle-ci-configuration.deleteconfiguration
        with:
          ownerType: rest.ownerType
          ownerId: rest.ownerId
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getconfiguration
        description: Use this method to retrieve CI integration configuration for the specified owner.
        call: lifecycle-ci-configuration.getconfiguration
        with:
          ownerType: rest.ownerType
          ownerId: rest.ownerId
          direct: rest.direct
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setconfiguration
        description: Use this method to create or update CI integration configuration for the specified owner.
        call: lifecycle-ci-configuration.setconfiguration
        with:
          ownerType: rest.ownerType
          ownerId: rest.ownerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-ci-configuration-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — CI Configuration. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: use-this-method-delete-ci
      description: Use this method to delete CI integration configuration for the specified owner.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lifecycle-ci-configuration.deleteconfiguration
      with:
        ownerType: tools.ownerType
        ownerId: tools.ownerId
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-retrieve-ci
      description: Use this method to retrieve CI integration configuration for the specified owner.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-ci-configuration.getconfiguration
      with:
        ownerType: tools.ownerType
        ownerId: tools.ownerId
        direct: tools.direct
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-create-update
      description: Use this method to create or update CI integration configuration for the specified owner.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: lifecycle-ci-configuration.setconfiguration
      with:
        ownerType: tools.ownerType
        ownerId: tools.ownerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.