Sonatype · Capability

Sonatype Lifecycle Public REST API — Claim Components

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

Run with Naftiko SonatypeClaim Components

What You Can Do

GET
Getall — Use this method to retrieve details of all claimed components.
/v1/api/v2/claim/components
POST
Set — Use this method to claim a component, or update the component details for a previously claimed component.
/v1/api/v2/claim/components
DELETE
Delete — Use this method to delete a claim on a previously claimed component by providing its hash.
/v1/api/v2/claim/components/{hash}
GET
Get — Use this method to retrieve details of a claimed component by specifying its hash.
/v1/api/v2/claim/components/{hash}

MCP Tools

use-this-method-retrieve-details

Use this method to retrieve details of all claimed components.

read-only idempotent
use-this-method-claim-component

Use this method to claim a component, or update the component details for a previously claimed component.

use-this-method-delete-claim

Use this method to delete a claim on a previously claimed component by providing its hash.

idempotent
use-this-method-retrieve-details-2

Use this method to retrieve details of a claimed component by specifying its hash.

read-only idempotent

Capability Spec

lifecycle-claim-components.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — Claim Components
  description: 'Sonatype Lifecycle Public REST API — Claim Components. 4 operations. Lead operation: Claim Components. Self-contained
    Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - Claim Components
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-claim-components
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — Claim Components business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-claim-components
      path: /api/v2/claim/components
      operations:
      - name: getall
        method: GET
        description: Use this method to retrieve details of all claimed components.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: set
        method: POST
        description: Use this method to claim a component, or update the component details for a previously claimed component.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-claim-components-hash
      path: /api/v2/claim/components/{hash}
      operations:
      - name: delete
        method: DELETE
        description: Use this method to delete a claim on a previously claimed component by providing its hash.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hash
          in: path
          type: string
          description: Enter the SHA1 hash for the component.
          required: true
      - name: get
        method: GET
        description: Use this method to retrieve details of a claimed component by specifying its hash.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hash
          in: path
          type: string
          description: The hash of the claimed component.
          required: true
    authentication:
      type: bearer
      token: '{{env.SONATYPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lifecycle-claim-components-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — Claim Components. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/claim/components
      name: api-v2-claim-components
      description: REST surface for api-v2-claim-components.
      operations:
      - method: GET
        name: getall
        description: Use this method to retrieve details of all claimed components.
        call: lifecycle-claim-components.getall
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: set
        description: Use this method to claim a component, or update the component details for a previously claimed component.
        call: lifecycle-claim-components.set
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/claim/components/{hash}
      name: api-v2-claim-components-hash
      description: REST surface for api-v2-claim-components-hash.
      operations:
      - method: DELETE
        name: delete
        description: Use this method to delete a claim on a previously claimed component by providing its hash.
        call: lifecycle-claim-components.delete
        with:
          hash: rest.hash
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: get
        description: Use this method to retrieve details of a claimed component by specifying its hash.
        call: lifecycle-claim-components.get
        with:
          hash: rest.hash
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-claim-components-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — Claim Components. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: use-this-method-retrieve-details
      description: Use this method to retrieve details of all claimed components.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-claim-components.getall
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-claim-component
      description: Use this method to claim a component, or update the component details for a previously claimed component.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lifecycle-claim-components.set
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-delete-claim
      description: Use this method to delete a claim on a previously claimed component by providing its hash.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lifecycle-claim-components.delete
      with:
        hash: tools.hash
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-retrieve-details-2
      description: Use this method to retrieve details of a claimed component by specifying its hash.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-claim-components.get
      with:
        hash: tools.hash
      outputParameters:
      - type: object
        mapping: $.