CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/mountebank-imposters

Authors Mountebank imposters (multi-protocol mock servers - HTTP, HTTPS, TCP, SMTP, LDAP, gRPC, WebSockets, GraphQL, and more) by POSTing JSON definitions to the Mountebank control API on port 2525, configures stubs with predicates and responses, and uses record-playback proxy mode to capture upstream traffic. Use when the project needs a multi-protocol mock server beyond HTTP-only tools like WireMock or MSW.

74

Quality

93%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

predicates-and-proxying.mdreferences/

Mountebank predicate operators and proxying

Reference detail for mountebank-imposters: the full predicate-operator set and the record-playback proxy modes.

Predicate operators

Mountebank supports several predicate operators in addition to equals:

OperatorMeaning
equalsExact match.
deepEqualsDeep equality on a nested object (e.g. JSON body).
containsSubstring / partial match.
startsWith / endsWithAffix matchers.
matchesRegex match.
existsWhether a field is present.
notNegate a child predicate.
orBoolean OR.
andBoolean AND.
injectCustom JavaScript predicate.

Proxying for record-playback

Set up an imposter as a proxy to a real upstream:

{
  "port": 4545,
  "protocol": "http",
  "stubs": [{
    "predicates": [{ "matches": { "path": ".*" } }],
    "responses": [{
      "proxy": {
        "to": "https://real-upstream.example.com",
        "mode": "proxyOnce"
      }
    }]
  }]
}
ModeBehavior
proxyOnceFirst request hits upstream; response is stored as a stub; subsequent identical requests replay.
proxyAlwaysEvery request hits upstream; every response is stored.
proxyTransparentPass-through; nothing recorded.

proxyOnce is the canonical record-playback workflow - run tests once against a real upstream to populate the imposter, then run forever offline.

SKILL.md

tile.json