Citrix · Capability

Citrix StoreFront Web API — Sessions

Citrix StoreFront Web API — Sessions. 3 operations. Lead operation: Citrix Disconnect a session. Self-contained Naftiko capability covering one Citrix business surface.

Run with Naftiko CitrixSessions

What You Can Do

POST
Disconnectsession — Citrix Disconnect a session
/v1/sessions/disconnect
POST
Listsessions — Citrix List active sessions
/v1/sessions/list
POST
Logoffsession — Citrix Log off a session
/v1/sessions/logoff

MCP Tools

citrix-disconnect-session

Citrix Disconnect a session

citrix-list-active-sessions

Citrix List active sessions

read-only
citrix-log-off-session

Citrix Log off a session

Capability Spec

storefront-web-sessions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Citrix StoreFront Web API — Sessions
  description: 'Citrix StoreFront Web API — Sessions. 3 operations. Lead operation: Citrix Disconnect a session. Self-contained
    Naftiko capability covering one Citrix business surface.'
  tags:
  - Citrix
  - Sessions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CITRIX_API_KEY: CITRIX_API_KEY
capability:
  consumes:
  - type: http
    namespace: storefront-web-sessions
    baseUri: https://{storefront-server}/Citrix/Store
    description: Citrix StoreFront Web API — Sessions business capability. Self-contained, no shared references.
    resources:
    - name: Sessions-Disconnect
      path: /Sessions/Disconnect
      operations:
      - name: disconnectsession
        method: POST
        description: Citrix Disconnect a session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: Sessions-List
      path: /Sessions/List
      operations:
      - name: listsessions
        method: POST
        description: Citrix List active sessions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: Sessions-Logoff
      path: /Sessions/Logoff
      operations:
      - name: logoffsession
        method: POST
        description: Citrix Log off a session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Csrf-Token
      value: '{{env.CITRIX_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: storefront-web-sessions-rest
    port: 8080
    description: REST adapter for Citrix StoreFront Web API — Sessions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/sessions/disconnect
      name: sessions-disconnect
      description: REST surface for Sessions-Disconnect.
      operations:
      - method: POST
        name: disconnectsession
        description: Citrix Disconnect a session
        call: storefront-web-sessions.disconnectsession
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sessions/list
      name: sessions-list
      description: REST surface for Sessions-List.
      operations:
      - method: POST
        name: listsessions
        description: Citrix List active sessions
        call: storefront-web-sessions.listsessions
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sessions/logoff
      name: sessions-logoff
      description: REST surface for Sessions-Logoff.
      operations:
      - method: POST
        name: logoffsession
        description: Citrix Log off a session
        call: storefront-web-sessions.logoffsession
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: storefront-web-sessions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Citrix StoreFront Web API — Sessions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: citrix-disconnect-session
      description: Citrix Disconnect a session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: storefront-web-sessions.disconnectsession
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: citrix-list-active-sessions
      description: Citrix List active sessions
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: storefront-web-sessions.listsessions
      outputParameters:
      - type: object
        mapping: $.
    - name: citrix-log-off-session
      description: Citrix Log off a session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: storefront-web-sessions.logoffsession
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.