proxy_stop_transparent
Stop the transparent proxy listener to disable automatic traffic interception. Use this to halt network capture or restore normal browsing without proxy interference.
Instructions
Stop the transparent proxy listener.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/transparent.ts:44-56 (handler)The handler function for the proxy_stop_transparent tool. It calls proxyManager.stopTransparent() and returns a success/error JSON response.
async () => { try { await proxyManager.stopTransparent(); return { content: [{ type: "text", text: JSON.stringify({ status: "success", message: "Transparent proxy stopped." }), }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: String(e) }) }] }; } }, - src/tools/transparent.ts:43-43 (schema)The schema for proxy_stop_transparent: no input parameters (empty object {})
{}, - src/tools/transparent.ts:40-57 (registration)Registration of the 'proxy_stop_transparent' tool on the MCP server via server.tool()
server.tool( "proxy_stop_transparent", "Stop the transparent proxy listener.", {}, async () => { try { await proxyManager.stopTransparent(); return { content: [{ type: "text", text: JSON.stringify({ status: "success", message: "Transparent proxy stopped." }), }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: String(e) }) }] }; } }, ); - src/index.ts:72-72 (registration)Top-level registration: registerTransparentTools(server) is called in the MCP server setup
registerTransparentTools(server); - src/state.ts:460-469 (helper)The underlying ProxyManager.stopTransparent() method that stops the transparent proxy server instance (mockttp) and sets _transparentRunning to false.
async stopTransparent(): Promise<void> { if (!this._transparentRunning) { throw new Error("Transparent proxy is not running."); } if (this.transparentServer) { await this.transparentServer.stop(); this.transparentServer = null; } this._transparentRunning = false; }