visualize_middleware
Visualizes middleware chain for all routes, detecting global, Next.js, and inline middleware. Shows execution order and identifies ordering issues such as CORS before auth, while flagging unprotected mutation endpoints.
Instructions
Visualize the middleware chain for all routes. Detects global middleware (app.use), Next.js middleware, and inline middleware. Shows execution order, identifies ordering issues (CORS before auth), and flags unprotected mutation endpoints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project root directory |