proxy_remove_host_upstream
Remove per-host upstream proxy overrides to restore default proxy settings for specific hostnames in network traffic interception.
Instructions
Remove a per-host upstream proxy override.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | Hostname to remove override for |
Implementation Reference
- src/tools/upstream.ts:81-99 (handler)The tool 'proxy_remove_host_upstream' is registered and implemented directly in this block. It calls 'proxyManager.removeHostUpstream' to perform the action.
server.tool( "proxy_remove_host_upstream", "Remove a per-host upstream proxy override.", { hostname: z.string().describe("Hostname to remove override for"), }, async ({ hostname }) => { const removed = await proxyManager.removeHostUpstream(hostname); if (!removed) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: `No upstream override for '${hostname}'` }) }] }; } return { content: [{ type: "text", text: JSON.stringify({ status: "success", message: `Upstream override for '${hostname}' removed.` }), }], }; }, );