mitm-rules

Manage MITM proxy interception rules via its REST API.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/dougwithseismic/node-mitm-proxy --skill mitm-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mitm-rules
Source: https://github.com/dougwithseismic/node-mitm-proxy/tree/main/skills/mitm-rules
Command: npx skills add https://github.com/dougwithseismic/node-mitm-proxy --skill mitm-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows you to precisely control and modify HTTP/HTTPS traffic flowing through the MITM proxy, enabling fine-grained manipulation of requests and responses.

Core Features & Use Cases

  • Intercept and Modify: Change headers, bodies, and status codes of live traffic.
  • Block or Redirect: Prevent specific requests from reaching their destination or send them elsewhere.
  • Mock APIs: Simulate responses for endpoints that are not yet available or for testing purposes.
  • Use Case: You need to test how your application behaves when an API endpoint returns an error. Use this Skill to create a rule that mocks the /api/data endpoint to return a 500 status code.

Quick Start

Use the mitm-rules skill to create a rule that blocks all requests to 'bad-domain.com'.

Frequently Asked Questions about mitm-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I mock API responses to test application behavior?

You can mock API responses by creating interception rules through the MITM proxy REST API that simulate specific status codes and payloads. This is useful for testing endpoints that are unavailable or simulating error responses.

How do I block or redirect specific HTTP requests through a proxy?

Yes, you can use inline TypeScript to define custom transform logic for HTTP request and response modification. For complex scenarios, the proxy also supports file-based rules to manage your interception transforms.

Can I use TypeScript to write custom transform logic for HTTP interception?

Yes, you can use inline TypeScript to define custom transform logic for HTTP request and response modification. For complex scenarios, the proxy also supports file-based rules to manage your interception transforms.

How do I intercept and modify HTTP traffic with a MITM proxy?

You intercept HTTP traffic by creating rules via the MITM proxy REST API to modify request and response headers, bodies, and status codes dynamically. This allows fine-grained manipulation of live traffic for testing and debugging.

How do I dynamically manage HTTP interception rules?

You dynamically manage HTTP interception rules by using the MITM proxy REST API to create, list, update, and delete rules. This supports dynamic modification of requests, responses, blocking, redirection, and mocking.