Sonatype Nexus · Capability

Sonatype Nexus Repository Manager — Security management: realms

Sonatype Nexus Repository Manager — Security management: realms. 3 operations. Lead operation: List the active realm IDs in order. Self-contained Naftiko capability covering one Sonatype Nexus business surface.

Run with Naftiko Sonatype NexusSecurity management: realms

What You Can Do

GET
Getactiverealms — List the active realm IDs in order
/v1/v1/security/realms/active
PUT
Setactiverealms — Set the active security realms in the order they should be used
/v1/v1/security/realms/active
GET
Getrealms — List the available realms
/v1/v1/security/realms/available

MCP Tools

list-active-realm-ids-order

List the active realm IDs in order

read-only idempotent
set-active-security-realms-order

Set the active security realms in the order they should be used

idempotent
list-available-realms

List the available realms

read-only idempotent

Capability Spec

repository-security-management-realms.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: 'Sonatype Nexus Repository Manager — Security management: realms'
  description: 'Sonatype Nexus Repository Manager — Security management: realms. 3 operations. Lead operation: List the active
    realm IDs in order. Self-contained Naftiko capability covering one Sonatype Nexus business surface.'
  tags:
  - Sonatype Nexus
  - 'Security management: realms'
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_NEXUS_API_KEY: SONATYPE_NEXUS_API_KEY
capability:
  consumes:
  - type: http
    namespace: repository-security-management-realms
    baseUri: ''
    description: 'Sonatype Nexus Repository Manager — Security management: realms business capability. Self-contained, no
      shared references.'
    resources:
    - name: v1-security-realms-active
      path: /v1/security/realms/active
      operations:
      - name: getactiverealms
        method: GET
        description: List the active realm IDs in order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setactiverealms
        method: PUT
        description: Set the active security realms in the order they should be used
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-security-realms-available
      path: /v1/security/realms/available
      operations:
      - name: getrealms
        method: GET
        description: List the available realms
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.SONATYPE_NEXUS_USER}}'
      password: '{{env.SONATYPE_NEXUS_PASS}}'
  exposes:
  - type: rest
    namespace: repository-security-management-realms-rest
    port: 8080
    description: 'REST adapter for Sonatype Nexus Repository Manager — Security management: realms. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.'
    resources:
    - path: /v1/v1/security/realms/active
      name: v1-security-realms-active
      description: REST surface for v1-security-realms-active.
      operations:
      - method: GET
        name: getactiverealms
        description: List the active realm IDs in order
        call: repository-security-management-realms.getactiverealms
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setactiverealms
        description: Set the active security realms in the order they should be used
        call: repository-security-management-realms.setactiverealms
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/security/realms/available
      name: v1-security-realms-available
      description: REST surface for v1-security-realms-available.
      operations:
      - method: GET
        name: getrealms
        description: List the available realms
        call: repository-security-management-realms.getrealms
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repository-security-management-realms-mcp
    port: 9090
    transport: http
    description: 'MCP adapter for Sonatype Nexus Repository Manager — Security management: realms. One tool per consumed operation,
      routed inline through this capability''s consumes block.'
    tools:
    - name: list-active-realm-ids-order
      description: List the active realm IDs in order
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-security-management-realms.getactiverealms
      outputParameters:
      - type: object
        mapping: $.
    - name: set-active-security-realms-order
      description: Set the active security realms in the order they should be used
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repository-security-management-realms.setactiverealms
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-available-realms
      description: List the available realms
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-security-management-realms.getrealms
      outputParameters:
      - type: object
        mapping: $.