Hoverfly · Capability

Hoverfly Admin API — Templating Data

Hoverfly Admin API — Templating Data. 3 operations. Lead operation: List CSV data sources. Self-contained Naftiko capability covering one Hoverfly business surface.

Run with Naftiko HoverflyTemplating Data

What You Can Do

GET
Listcsvdatasources — List CSV data sources
/v1/api/v2/hoverfly/templating-data-source/csv
PUT
Upsertcsvdatasource — Upsert CSV data source
/v1/api/v2/hoverfly/templating-data-source/csv
DELETE
Deletecsvdatasource — Delete CSV data source
/v1/api/v2/hoverfly/templating-data-source/csv/{datasourcename}

MCP Tools

list-csv-data-sources

List CSV data sources

read-only idempotent
upsert-csv-data-source

Upsert CSV data source

idempotent
delete-csv-data-source

Delete CSV data source

idempotent

Capability Spec

hoverfly-templating-data.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Hoverfly Admin API — Templating Data
  description: 'Hoverfly Admin API — Templating Data. 3 operations. Lead operation: List CSV data sources. Self-contained
    Naftiko capability covering one Hoverfly business surface.'
  tags:
  - Hoverfly
  - Templating Data
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HOVERFLY_API_KEY: HOVERFLY_API_KEY
capability:
  consumes:
  - type: http
    namespace: hoverfly-templating-data
    baseUri: http://localhost:8888
    description: Hoverfly Admin API — Templating Data business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-hoverfly-templating-data-source-csv
      path: /api/v2/hoverfly/templating-data-source/csv
      operations:
      - name: listcsvdatasources
        method: GET
        description: List CSV data sources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: upsertcsvdatasource
        method: PUT
        description: Upsert CSV data source
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-hoverfly-templating-data-source-csv-dataSourceName
      path: /api/v2/hoverfly/templating-data-source/csv/{dataSourceName}
      operations:
      - name: deletecsvdatasource
        method: DELETE
        description: Delete CSV data source
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dataSourceName
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: hoverfly-templating-data-rest
    port: 8080
    description: REST adapter for Hoverfly Admin API — Templating Data. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/hoverfly/templating-data-source/csv
      name: api-v2-hoverfly-templating-data-source-csv
      description: REST surface for api-v2-hoverfly-templating-data-source-csv.
      operations:
      - method: GET
        name: listcsvdatasources
        description: List CSV data sources
        call: hoverfly-templating-data.listcsvdatasources
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: upsertcsvdatasource
        description: Upsert CSV data source
        call: hoverfly-templating-data.upsertcsvdatasource
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/hoverfly/templating-data-source/csv/{datasourcename}
      name: api-v2-hoverfly-templating-data-source-csv-datasourcename
      description: REST surface for api-v2-hoverfly-templating-data-source-csv-dataSourceName.
      operations:
      - method: DELETE
        name: deletecsvdatasource
        description: Delete CSV data source
        call: hoverfly-templating-data.deletecsvdatasource
        with:
          dataSourceName: rest.dataSourceName
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hoverfly-templating-data-mcp
    port: 9090
    transport: http
    description: MCP adapter for Hoverfly Admin API — Templating Data. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-csv-data-sources
      description: List CSV data sources
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hoverfly-templating-data.listcsvdatasources
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-csv-data-source
      description: Upsert CSV data source
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: hoverfly-templating-data.upsertcsvdatasource
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-csv-data-source
      description: Delete CSV data source
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: hoverfly-templating-data.deletecsvdatasource
      with:
        dataSourceName: tools.dataSourceName
      outputParameters:
      - type: object
        mapping: $.