McAfee (Trellix) · Capability

McAfee ESM API — Authentication

McAfee ESM API — Authentication. 2 operations. Lead operation: McAfee Authenticate and create session. Self-contained Naftiko capability covering one Mcafee business surface.

Run with Naftiko McafeeAuthentication

What You Can Do

POST
Login — McAfee Authenticate and create session
/v1/v2/login
DELETE
Logout — McAfee End current session
/v1/v2/logout

MCP Tools

mcafee-authenticate-and-create-session

McAfee Authenticate and create session

mcafee-end-current-session

McAfee End current session

idempotent

Capability Spec

esm-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: McAfee ESM API — Authentication
  description: 'McAfee ESM API — Authentication. 2 operations. Lead operation: McAfee Authenticate and create session. Self-contained
    Naftiko capability covering one Mcafee business surface.'
  tags:
  - Mcafee
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MCAFEE_API_KEY: MCAFEE_API_KEY
capability:
  consumes:
  - type: http
    namespace: esm-authentication
    baseUri: https://{esm-server}/rs/esm
    description: McAfee ESM API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: v2-login
      path: /v2/login
      operations:
      - name: login
        method: POST
        description: McAfee Authenticate and create session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v2-logout
      path: /v2/logout
      operations:
      - name: logout
        method: DELETE
        description: McAfee End current session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: JWTToken
      value: '{{env.MCAFEE_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: esm-authentication-rest
    port: 8080
    description: REST adapter for McAfee ESM API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/login
      name: v2-login
      description: REST surface for v2-login.
      operations:
      - method: POST
        name: login
        description: McAfee Authenticate and create session
        call: esm-authentication.login
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/logout
      name: v2-logout
      description: REST surface for v2-logout.
      operations:
      - method: DELETE
        name: logout
        description: McAfee End current session
        call: esm-authentication.logout
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: esm-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for McAfee ESM API — Authentication. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: mcafee-authenticate-and-create-session
      description: McAfee Authenticate and create session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: esm-authentication.login
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mcafee-end-current-session
      description: McAfee End current session
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: esm-authentication.logout
      outputParameters:
      - type: object
        mapping: $.