manage_proxy
Start or stop a mitmproxy background process to capture and redirect browser traffic. Use it before any proxy/traffic operation to initiate or terminate traffic interception, with optional upstream chaining and web UI.
Instructions
Start or stop the mitmproxy background process. This is the FIRST tool you should call before any proxy/traffic operation.
WORKFLOW:
Call manage_proxy(action="start") to start the proxy
Then call browser_open(proxy_port=8082) to route browser traffic through it
Now all browser traffic is captured — use get_traffic_summary, search_traffic, etc.
To chain through Burp Suite: manage_proxy(action="start", upstream="localhost:8080") To get a web GUI: manage_proxy(action="start", ui=true) — opens mitmweb on port 8081
Args: action: "start" to launch mitmproxy, "stop" to kill it. No other values accepted. port: Proxy listen port (default 8082). Browser must connect to the same port. ui: If true, launches mitmweb (web GUI on port 8081) instead of headless mitmdump. upstream: Forward all traffic to an upstream proxy (e.g. "localhost:8080" for Burp Suite). Leave empty for direct connections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ui | No | ||
| port | No | ||
| action | Yes | ||
| upstream | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |