proxy_remove_target
Remove a domain from proxy monitoring to stop tracking its traffic and analysis in the Web Proxy MCP Server.
Instructions
Remove a target domain from proxy monitoring
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to remove from monitoring |
Implementation Reference
- src/tools/tool-definitions.js:42-55 (schema)Schema definition for proxy_remove_target tool, specifying input requirements (domain string) and description.proxy_remove_target: { name: "proxy_remove_target", description: "Remove a target domain from proxy monitoring", inputSchema: { type: "object", properties: { domain: { type: "string", description: "Domain to remove from monitoring" } }, required: ["domain"] } },
- src/tools/tool-handlers.js:175-182 (handler)MCP tool handler for proxy_remove_target: validates args, calls targetManager.removeTarget(domain), and returns formatted response.case 'proxy_remove_target': const removed = this.targetManager.removeTarget(args.domain); return { content: [{ type: "text", text: `Target removed: ${args.domain}\nStatus: ${removed ? 'success' : 'not found'}\nRemaining domains: ${this.targetManager.getStats().enabled}` }] };
- src/proxy/target-manager.js:54-65 (helper)Core logic implementation: removes target domain from internal Map storage and updates PAC file if removed.removeTarget(domain) { if (!domain) { throw new Error('Domain is required'); } const removed = this.targets.delete(domain.toLowerCase()); if (removed) { this._updatePacFile(); } return removed; }