MCP SERVERS
Mock MCP
Expose mock server routes as MCP tools for AI clients — predictable, controlled API responses without hitting real endpoints.
Overview
Enable MCP on a mock server to expose its routes as MCP tools at /mcp. When an AI client calls a tool, it receives the canned mock response body.
Useful for giving AI assistants access to predictable, controlled API responses without hitting real endpoints.
Enabling
Mock server settings → toggle 'MCP' on (mcpEnabled: true).
/mcp endpoint alongside regular mock routeshttp://localhost:{port}/mcpRoute as Tool
Each mock route with an mcpDescription becomes an MCP tool.
mcpDescription: not exposed as a tool (still works as a normal mock route)GET_users)MCP Fields on Routes
In the Route Editor, expand the 'MCP Tool' section.
| Field | Type | Description |
|---|---|---|
| mcpDescription | string | What the tool does — shown to AI clients |
| mcpInputSchema | JSON Schema | What parameters the tool accepts |
Both fields are optional. Without a description, the route is hidden from the MCP tool list.
Tool Calls
AI client calls tool → mock server returns the configured response body.
Use Cases
Prototyping AI agents
Give them mock API access during development
Testing tool calling
Verify AI correctly interprets schemas and parameters
Demo environments
Showcase AI integration without live APIs
Controlled responses
AI always gets consistent data for testing logic