Sonatype · Capability

Sonatype Lifecycle Public REST API — Composite Source Control

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

Run with Naftiko SonatypeComposite Source Control

What You Can Do

GET
Getcompositesourcecontrolbyowner — Use this method to retrieve the composite source control management (SCM) configuration settings.
/v1/api/v2/compositesourcecontrol/{ownertype}/{internalownerid}

MCP Tools

use-this-method-retrieve-composite

Use this method to retrieve the composite source control management (SCM) configuration settings.

read-only idempotent

Capability Spec

lifecycle-composite-source-control.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — Composite Source Control
  description: 'Sonatype Lifecycle Public REST API — Composite Source Control. 1 operations. Lead operation: Composite Source
    Control. Self-contained Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - Composite 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-composite-source-control
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — Composite Source Control business capability. Self-contained, no shared
      references.
    resources:
    - name: api-v2-compositeSourceControl-ownerType-internalOwnerId
      path: /api/v2/compositeSourceControl/{ownerType}/{internalOwnerId}
      operations:
      - name: getcompositesourcecontrolbyowner
        method: GET
        description: Use this method to retrieve the composite source control management (SCM) configuration settings.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ownerType
          in: path
          type: string
          description: Select the ownerType of the entity (organization or application) for which you want to retrieve the
            composite source control configuration settings.
          required: true
        - name: internalOwnerId
          in: path
          type: string
          description: Enter the id of the application or organization for which you want to retrieve the composite source
            control configuration settings
          required: true
    authentication:
      type: bearer
      token: '{{env.SONATYPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lifecycle-composite-source-control-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — Composite Source Control. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/compositesourcecontrol/{ownertype}/{internalownerid}
      name: api-v2-compositesourcecontrol-ownertype-internalownerid
      description: REST surface for api-v2-compositeSourceControl-ownerType-internalOwnerId.
      operations:
      - method: GET
        name: getcompositesourcecontrolbyowner
        description: Use this method to retrieve the composite source control management (SCM) configuration settings.
        call: lifecycle-composite-source-control.getcompositesourcecontrolbyowner
        with:
          ownerType: rest.ownerType
          internalOwnerId: rest.internalOwnerId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-composite-source-control-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — Composite Source Control. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: use-this-method-retrieve-composite
      description: Use this method to retrieve the composite source control management (SCM) configuration settings.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-composite-source-control.getcompositesourcecontrolbyowner
      with:
        ownerType: tools.ownerType
        internalOwnerId: tools.internalOwnerId
      outputParameters:
      - type: object
        mapping: $.