proxy_remove_rule
Delete an interception rule from the proxy-mcp server to stop capturing, modifying, or mocking specific network traffic.
Instructions
Delete an interception rule.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | Rule ID to delete |
Implementation Reference
- src/tools/rules.ts:113-131 (handler)The implementation of the `proxy_remove_rule` tool handler within `registerRuleTools`. It uses `proxyManager.removeRule` to delete the rule.
server.tool( "proxy_remove_rule", "Delete an interception rule.", { rule_id: z.string().describe("Rule ID to delete"), }, async ({ rule_id }) => { const removed = await proxyManager.removeRule(rule_id); if (!removed) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: `Rule '${rule_id}' not found` }) }] }; } return { content: [{ type: "text", text: JSON.stringify({ status: "success", message: `Rule '${rule_id}' removed.` }), }], }; }, );