Labsco
MCP SERVER

LMAD Laravel API Discovery

by 0xmergen

Exposes a Laravel app's own routes, controllers, validation rules and response shapes to an agent.

API Specifications & HTTP Tooling
Summary
Validation rules are the part an agent otherwise gets wrong every time.

A route list tells you the endpoint exists; the form request tells you what it will actually reject, and that is where generated client code and generated tests fall over. Parsing those rules — with the authorisation logic beside them — means the agent knows the contract rather than guessing it from a controller signature. The single-call whole-endpoint view is the one to use in practice: it saves the four round trips you would otherwise spend assembling the same picture.

What it is

A package you add to a Laravel application so an agent can ask the codebase what its API actually is, rather than inferring it from source.

What you get
  • Route discovery, filterable by path, method, domain, with vendor routes excluded
  • Controller inspection, down to file paths and line numbers
  • Validation analysis — the form request rules, custom messages and authorisation logic
  • Response schema analysis over return types, resources and model attributes
  • One call that returns everything about a single endpoint
  • Routes and controllers also reachable as addressable resources
Requirements

PHP 8.2 or higher and Laravel 12.x, installed with composer. MIT licensed.

Setup effort

One command — composer require 0xmergen/lmad