proxy_stop
Stop the MITM proxy while preserving traffic history and CA certificates for later analysis or resumption.
Instructions
Stop the MITM proxy. Traffic history and CA certificate are retained.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/lifecycle.ts:63-81 (handler)The implementation of the `proxy_stop` tool, which stops the MITM proxy using `proxyManager.stop()` after closing all devTools sessions.
server.tool( "proxy_stop", "Stop the MITM proxy. Traffic history and CA certificate are retained.", {}, async () => { try { await devToolsBridge.closeAllSessions().catch(() => {}); await proxyManager.stop(); return { content: [{ type: "text", text: JSON.stringify({ status: "success", message: "Proxy stopped. Traffic and cert retained." }), }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: String(e) }) }] }; } }, );