Summary
mm_get_context currently reports capability presence (e.g., mockServer) but does not expose whether the mock server is actually enabled/running. This is causing agent/operator confusion in e2e flows where mock server is opt-in.
Problem
In e2e, the mock server capability may be available while still disabled by default. From the client side, mm_get_context does not provide enough signal to distinguish:
- capability exists
- capability enabled by config
- capability currently running
This makes it hard to reliably reason about whether network mocks are active.
Proposal
For e2e context, extend mm_get_context output to include explicit mock server state, for example:
{
"currentContext": "e2e",
"capabilities": {
"mockServer": {
"available": true,
"enabled": false,
"running": false,
"port": 8000
}
}
}
For prod context (which has no mock server capability), return either:
- no
mockServer field, or
mockServer: { "available": false }
Why this helps
- Removes ambiguity between capability presence vs actual active state
- Improves agent ergonomics and deterministic automation flows
- Makes debugging easier when mocks are expected but not enabled
Acceptance criteria
mm_get_context in e2e includes mock server state (available, enabled, running, and port if known)
mm_get_context in prod clearly indicates mock server is unavailable
- Documentation/examples updated to reflect the new response shape
Summary
mm_get_contextcurrently reports capability presence (e.g.,mockServer) but does not expose whether the mock server is actually enabled/running. This is causing agent/operator confusion in e2e flows where mock server is opt-in.Problem
In e2e, the mock server capability may be available while still disabled by default. From the client side,
mm_get_contextdoes not provide enough signal to distinguish:This makes it hard to reliably reason about whether network mocks are active.
Proposal
For
e2econtext, extendmm_get_contextoutput to include explicit mock server state, for example:{ "currentContext": "e2e", "capabilities": { "mockServer": { "available": true, "enabled": false, "running": false, "port": 8000 } } }For
prodcontext (which has no mock server capability), return either:mockServerfield, ormockServer: { "available": false }Why this helps
Acceptance criteria
mm_get_contextine2eincludes mock server state (available,enabled,running, andportif known)mm_get_contextinprodclearly indicates mock server is unavailable