Sonatype · Capability

Sonatype Lifecycle Public REST API — Config Mail

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

Run with Naftiko SonatypeConfig Mail

What You Can Do

DELETE
Deleteconfiguration3 — Use this method to disable or remove an SMTP configuration.
/v1/api/v2/config/mail
GET
Getconfiguration3 — Use this method to review the configuration for an SMTP server.
/v1/api/v2/config/mail
PUT
Setconfiguration3 — Use this method to configure or update an existing SMTP server configuration.
/v1/api/v2/config/mail
POST
Testconfiguration — Use this method to test an SMTP configuration, without affecting the current configuration.
/v1/api/v2/config/mail/test/{recipientemail}

MCP Tools

use-this-method-disable-remove

Use this method to disable or remove an SMTP configuration.

idempotent
use-this-method-review-configuration

Use this method to review the configuration for an SMTP server.

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

Use this method to configure or update an existing SMTP server configuration.

idempotent
use-this-method-test-smtp

Use this method to test an SMTP configuration, without affecting the current configuration.

read-only

Capability Spec

lifecycle-config-mail.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — Config Mail
  description: 'Sonatype Lifecycle Public REST API — Config Mail. 4 operations. Lead operation: Config Mail. Self-contained
    Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - Config Mail
  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-mail
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — Config Mail business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-config-mail
      path: /api/v2/config/mail
      operations:
      - name: deleteconfiguration3
        method: DELETE
        description: Use this method to disable or remove an SMTP configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getconfiguration3
        method: GET
        description: Use this method to review the configuration for an SMTP server.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setconfiguration3
        method: PUT
        description: Use this method to configure or update an existing SMTP server configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-v2-config-mail-test-recipientEmail
      path: /api/v2/config/mail/test/{recipientEmail}
      operations:
      - name: testconfiguration
        method: POST
        description: Use this method to test an SMTP configuration, without affecting the current configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: recipientEmail
          in: path
          type: string
          description: Enter the test recipient email address.
          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-config-mail-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — Config Mail. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/config/mail
      name: api-v2-config-mail
      description: REST surface for api-v2-config-mail.
      operations:
      - method: DELETE
        name: deleteconfiguration3
        description: Use this method to disable or remove an SMTP configuration.
        call: lifecycle-config-mail.deleteconfiguration3
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getconfiguration3
        description: Use this method to review the configuration for an SMTP server.
        call: lifecycle-config-mail.getconfiguration3
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setconfiguration3
        description: Use this method to configure or update an existing SMTP server configuration.
        call: lifecycle-config-mail.setconfiguration3
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/config/mail/test/{recipientemail}
      name: api-v2-config-mail-test-recipientemail
      description: REST surface for api-v2-config-mail-test-recipientEmail.
      operations:
      - method: POST
        name: testconfiguration
        description: Use this method to test an SMTP configuration, without affecting the current configuration.
        call: lifecycle-config-mail.testconfiguration
        with:
          recipientEmail: rest.recipientEmail
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-config-mail-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — Config Mail. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: use-this-method-disable-remove
      description: Use this method to disable or remove an SMTP configuration.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lifecycle-config-mail.deleteconfiguration3
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-review-configuration
      description: Use this method to review the configuration for an SMTP server.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-config-mail.getconfiguration3
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-configure-update
      description: Use this method to configure or update an existing SMTP server configuration.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: lifecycle-config-mail.setconfiguration3
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-test-smtp
      description: Use this method to test an SMTP configuration, without affecting the current configuration.
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: lifecycle-config-mail.testconfiguration
      with:
        recipientEmail: tools.recipientEmail
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.