manage_mock_server
Start, stop, or list mock servers using OpenAPI specs to simulate APIs for frontend development, enabling complete lifecycle management.
Instructions
Manage Specmatic mock servers - start, stop, or list running servers for frontend development. Supports complete mock server lifecycle management.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "manage_mock_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The action to perform: 'start' creates a new server, 'stop' terminates a server, 'list' shows running servers | |
| openApiSpec | No | The OpenAPI specification content (YAML or JSON) - required for 'start' command | |
| port | No | Port number for the mock server - required for 'start' and 'stop' commands | |
| specFormat | No | Format of the OpenAPI spec - used with 'start' command | yaml |