Scaffold backend mocks from frontend code
The agent creates a complete set of stateful CRUD resources with seed records and custom endpoints based on the frontend code's data models, accelerating backend development.
How it works
Changes data in your accountsSoftware development
The agent uses the scaffold_backend tool to create several resources with seed records and custom endpoints in a single call. This tool reads the frontend code context (if provided via companion servers or prompt) to model the data structure. The agent should confirm the workspace and folder target before execution, as this creates new data structures.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Prompt for Scaffold backend mocks from frontend code
Scaffold a backend mock for my frontend code. Create the necessary resources with seed records and custom endpoints based on the data models found in the provided code.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
mock_backend_for_frontend : Reads your frontend code, models its data and scaffolds CRUD mocks with seed records.MCP server — APIMock Docs