MockServer API
MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby and a simple REST API (as shown below). MockServer Proxy is a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding). Both MockServer and the MockServer Proxy record all received requests so that it is possible to verify exactly what requests have been sent by the system under test.
What You Can Do
MCP Tools
put-mockserver-expectation
create expectation
put-mockserver-openapi
create expectations from OpenAPI or Swagger
put-mockserver-clear
clears expectations and recorded requests that match the request matcher
put-mockserver-reset
clears all expectations and recorded requests
put-mockserver-retrieve
retrieve recorded requests, active expectations, recorded expectations or log messages
put-mockserver-verify
verify a request has been received a specific number of times
put-mockserver-verifysequence
verify a sequence of request has been received in the specific order
put-mockserver-status
return listening ports
put-mockserver-bind
bind additional listening ports
put-mockserver-stop
stop running process