Mapin: A Laravel Code Graph Exposed via MCP So AI Agents Know What Depends on What

Brandon-Vergara · reddit · 2026-11-13

The author found generic language-agnostic code graph tools fail on Laravel: they only capture static calls, while real Laravel wiring is routes-to-methods, view(), Eloquent relations, container bindings, and event listeners. So he built Mapin.

Key design

Real-world scale

Runs on their multi-tenant ERP (4,700 PHP/Blade files): 25,000 nodes, 74,000 edges. Complements Laravel Boost (what the app contains vs. what depends on what). Of 58 logged found: false misses, 13 were naming variants now fixed in v0.2.5. MIT licensed, PHP 8.2+, Laravel 11.45–13.

Original post →

More from coding & agent

coding & agent channel →