Sonatype · Capability

Sonatype Lifecycle Public REST API — Config Source Control

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

Run with Naftiko SonatypeConfig Source Control

What You Can Do

DELETE
Deleteconfiguration6 — Use this method to delete an existing SCM configuration.
/v1/api/v2/config/sourcecontrol
GET
Getconfiguration6 — Use this method to retrieve an existing SCM configuration.
/v1/api/v2/config/sourcecontrol
PUT
Setconfiguration6 — Use this method to set an SCM Configuration with the IQ Server.
/v1/api/v2/config/sourcecontrol

MCP Tools

use-this-method-delete-existing

Use this method to delete an existing SCM configuration.

idempotent
use-this-method-retrieve-existing

Use this method to retrieve an existing SCM configuration.

read-only idempotent
use-this-method-set-scm

Use this method to set an SCM Configuration with the IQ Server.

idempotent

Capability Spec

lifecycle-config-source-control.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — Config Source Control
  description: 'Sonatype Lifecycle Public REST API — Config Source Control. 3 operations. Lead operation: Config Source Control.
    Self-contained Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - Config Source Control
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-config-source-control
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — Config Source Control business capability. Self-contained, no shared
      references.
    resources:
    - name: api-v2-config-sourceControl
      path: /api/v2/config/sourceControl
      operations:
      - name: deleteconfiguration6
        method: DELETE
        description: Use this method to delete an existing SCM configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getconfiguration6
        method: GET
        description: Use this method to retrieve an existing SCM configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setconfiguration6
        method: PUT
        description: Use this method to set an SCM Configuration with the IQ Server.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - 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-config-source-control-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — Config Source Control. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/config/sourcecontrol
      name: api-v2-config-sourcecontrol
      description: REST surface for api-v2-config-sourceControl.
      operations:
      - method: DELETE
        name: deleteconfiguration6
        description: Use this method to delete an existing SCM configuration.
        call: lifecycle-config-source-control.deleteconfiguration6
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getconfiguration6
        description: Use this method to retrieve an existing SCM configuration.
        call: lifecycle-config-source-control.getconfiguration6
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setconfiguration6
        description: Use this method to set an SCM Configuration with the IQ Server.
        call: lifecycle-config-source-control.setconfiguration6
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-config-source-control-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — Config Source Control. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: use-this-method-delete-existing
      description: Use this method to delete an existing SCM configuration.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lifecycle-config-source-control.deleteconfiguration6
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-retrieve-existing
      description: Use this method to retrieve an existing SCM configuration.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-config-source-control.getconfiguration6
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-set-scm
      description: Use this method to set an SCM Configuration with the IQ Server.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: lifecycle-config-source-control.setconfiguration6
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.