Sonatype Nexus · Capability

Sonatype Nexus Repository Manager — Capabilities

Sonatype Nexus Repository Manager — Capabilities. 5 operations. Lead operation: List the active capabilities. Self-contained Naftiko capability covering one Sonatype Nexus business surface.

Run with Naftiko Sonatype NexusCapabilities

What You Can Do

GET
List1 — List the active capabilities
/v1/v1/capabilities
POST
Create4 — Create a capability
/v1/v1/capabilities
GET
Gettypes — List all capability types available and exposed in the system
/v1/v1/capabilities/types
DELETE
Delete5 — Delete a capability
/v1/v1/capabilities/{capabilityid}
PUT
Update3 — Update a capability
/v1/v1/capabilities/{capabilityid}

MCP Tools

list-active-capabilities

List the active capabilities

read-only idempotent
create-capability

Create a capability

list-all-capability-types-available

List all capability types available and exposed in the system

read-only idempotent
delete-capability

Delete a capability

idempotent
update-capability

Update a capability

idempotent

Capability Spec

repository-capabilities.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Nexus Repository Manager — Capabilities
  description: 'Sonatype Nexus Repository Manager — Capabilities. 5 operations. Lead operation: List the active capabilities.
    Self-contained Naftiko capability covering one Sonatype Nexus business surface.'
  tags:
  - Sonatype Nexus
  - Capabilities
  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-capabilities
    baseUri: ''
    description: Sonatype Nexus Repository Manager — Capabilities business capability. Self-contained, no shared references.
    resources:
    - name: v1-capabilities
      path: /v1/capabilities
      operations:
      - name: list1
        method: GET
        description: List the active capabilities
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: create4
        method: POST
        description: Create a capability
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-capabilities-types
      path: /v1/capabilities/types
      operations:
      - name: gettypes
        method: GET
        description: List all capability types available and exposed in the system
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-capabilities-capabilityId
      path: /v1/capabilities/{capabilityId}
      operations:
      - name: delete5
        method: DELETE
        description: Delete a capability
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: capabilityId
          in: path
          type: string
          description: capabilityId
          required: true
      - name: update3
        method: PUT
        description: Update a capability
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: capabilityId
          in: path
          type: string
          description: capabilityId
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: basic
      username: '{{env.SONATYPE_NEXUS_USER}}'
      password: '{{env.SONATYPE_NEXUS_PASS}}'
  exposes:
  - type: rest
    namespace: repository-capabilities-rest
    port: 8080
    description: REST adapter for Sonatype Nexus Repository Manager — Capabilities. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/capabilities
      name: v1-capabilities
      description: REST surface for v1-capabilities.
      operations:
      - method: GET
        name: list1
        description: List the active capabilities
        call: repository-capabilities.list1
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: create4
        description: Create a capability
        call: repository-capabilities.create4
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/capabilities/types
      name: v1-capabilities-types
      description: REST surface for v1-capabilities-types.
      operations:
      - method: GET
        name: gettypes
        description: List all capability types available and exposed in the system
        call: repository-capabilities.gettypes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/capabilities/{capabilityid}
      name: v1-capabilities-capabilityid
      description: REST surface for v1-capabilities-capabilityId.
      operations:
      - method: DELETE
        name: delete5
        description: Delete a capability
        call: repository-capabilities.delete5
        with:
          capabilityId: rest.capabilityId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: update3
        description: Update a capability
        call: repository-capabilities.update3
        with:
          capabilityId: rest.capabilityId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repository-capabilities-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Nexus Repository Manager — Capabilities. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-active-capabilities
      description: List the active capabilities
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-capabilities.list1
      outputParameters:
      - type: object
        mapping: $.
    - name: create-capability
      description: Create a capability
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repository-capabilities.create4
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-capability-types-available
      description: List all capability types available and exposed in the system
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-capabilities.gettypes
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-capability
      description: Delete a capability
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repository-capabilities.delete5
      with:
        capabilityId: tools.capabilityId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-capability
      description: Update a capability
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repository-capabilities.update3
      with:
        capabilityId: tools.capabilityId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.