McAfee (Trellix) · Capability

McAfee Web Gateway API — Authentication

McAfee Web Gateway 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/login
POST
Logout — McAfee End current session
/v1/logout

MCP Tools

mcafee-authenticate-and-create-session

McAfee Authenticate and create session

mcafee-end-current-session

McAfee End current session

Capability Spec

web-gateway-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: McAfee Web Gateway API — Authentication
  description: 'McAfee Web Gateway 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: web-gateway-authentication
    baseUri: https://{mwg-server}:4712/Konfigurator/REST
    description: McAfee Web Gateway API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: login
      path: /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: logout
      path: /logout
      operations:
      - name: logout
        method: POST
        description: McAfee End current session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: JSESSIONID
      value: '{{env.MCAFEE_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: web-gateway-authentication-rest
    port: 8080
    description: REST adapter for McAfee Web Gateway API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/login
      name: login
      description: REST surface for login.
      operations:
      - method: POST
        name: login
        description: McAfee Authenticate and create session
        call: web-gateway-authentication.login
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/logout
      name: logout
      description: REST surface for logout.
      operations:
      - method: POST
        name: logout
        description: McAfee End current session
        call: web-gateway-authentication.logout
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: web-gateway-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for McAfee Web Gateway 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: web-gateway-authentication.login
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mcafee-end-current-session
      description: McAfee End current session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: web-gateway-authentication.logout
      outputParameters:
      - type: object
        mapping: $.