WireMock · Capability

WireMock Admin API — Scenarios

WireMock Admin API — Scenarios. 2 operations. Lead operation: Get All Scenarios. Self-contained Naftiko capability covering one Wiremock business surface.

Run with Naftiko WiremockScenarios

What You Can Do

GET
Get — Get All Scenarios
/v1/admin/scenarios
POST
Post — Reset the State of All Scenarios
/v1/admin/scenarios/reset

MCP Tools

get-all-scenarios

Get All Scenarios

read-only idempotent
reset-state-all-scenarios

Reset the State of All Scenarios

Capability Spec

admin-scenarios.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WireMock Admin API — Scenarios
  description: 'WireMock Admin API — Scenarios. 2 operations. Lead operation: Get All Scenarios. Self-contained Naftiko capability
    covering one Wiremock business surface.'
  tags:
  - Wiremock
  - Scenarios
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WIREMOCK_API_KEY: WIREMOCK_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-scenarios
    baseUri: http://localhost:8080
    description: WireMock Admin API — Scenarios business capability. Self-contained, no shared references.
    resources:
    - name: __admin-scenarios
      path: /__admin/scenarios
      operations:
      - name: get
        method: GET
        description: Get All Scenarios
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: __admin-scenarios-reset
      path: /__admin/scenarios/reset
      operations:
      - name: post
        method: POST
        description: Reset the State of All Scenarios
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: admin-scenarios-rest
    port: 8080
    description: REST adapter for WireMock Admin API — Scenarios. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/admin/scenarios
      name: admin-scenarios
      description: REST surface for __admin-scenarios.
      operations:
      - method: GET
        name: get
        description: Get All Scenarios
        call: admin-scenarios.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/scenarios/reset
      name: admin-scenarios-reset
      description: REST surface for __admin-scenarios-reset.
      operations:
      - method: POST
        name: post
        description: Reset the State of All Scenarios
        call: admin-scenarios.post
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-scenarios-mcp
    port: 9090
    transport: http
    description: MCP adapter for WireMock Admin API — Scenarios. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-all-scenarios
      description: Get All Scenarios
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-scenarios.get
      outputParameters:
      - type: object
        mapping: $.
    - name: reset-state-all-scenarios
      description: Reset the State of All Scenarios
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-scenarios.post
      outputParameters:
      - type: object
        mapping: $.