Skip to content

With RapiDoc, RapiFlow and MCP

List the mock first in the spec’s servers, so Try sends requests to it:

servers:
- url: http://localhost:4010/openapi
description: Mock (rapidoc mock)
- url: https://api.example.com

With OAuth, sign in through Authorize in <rapi-doc> as usual: the mock checks the token like the real API would.

A workflow that creates something in one step and reads it in the next needs a mock that remembers. Run the mock with --stateful, and set server-url on <rapi-flow> to the mock’s address.

To let an AI agent work against the mock:

npx rapidoc mcp serve openapi.yaml --base-url http://localhost:4010/openapi