name: create-stubs
user-invocable: false
description: Create and import WireMock stubs for a mock API. Use when the user wants to add new stub mappings to a WireMock Cloud mock API.
argument-hint: ""
allowed-tools:
- Read(../references/*)
- mcp__wiremock__who_am_i
- mcp__wiremock__search_my_mock_apis
- mcp__wiremock__search_stub_mappings
- mcp__wiremock__import_stubs_to_mock_api
- mcp__wiremock__search_request_journal
- mcp__wiremock__reset_request_journal
- mcp__wiremock__make_http_request
- mcp__wiremock__look_up_documentation
- mcp__wiremock__pull
Prerequisites
This skill requires the WireMock Cloud MCP server to be configured and running. If it is unavailable, stop and inform the user before proceeding.
Reference Documentation
Read these references before creating stubs:
- Stub Creation Guidelines - rules for creating and importing stubs
- Validating and Fixing Stubs - process for validating stubs and fixing errors
Instructions
The target mock API is: $ARGUMENTS
If $ARGUMENTS is empty, ask the user which mock API to create stubs for.
- Identify the target mock API using
search_my_mock_apis. - Read the Stub Creation Guidelines.
- Gather requirements from the user about what stubs to create (endpoints, methods, response data, scenarios).
- If an OpenAPI description is available for the mock API, pull it using
pulland use it to ensure responses conform to schemas. - Create the stubs and import them using
import_stubs_to_mock_api. - Validate the imported stubs using the process in Validating and Fixing Stubs.
- Report the created stubs to the user.