Model Inspector

•

Provides AI coding assistants with deep introspection into Laravel Eloquent models, relationships, and database schema.

This tool acts as a Model Context Protocol (MCP) server, empowering AI coding assistants with a comprehensive understanding of your Laravel application's data layer. It exposes several specialized tools that allow AI to inspect Eloquent models, their relationships, and the underlying database schema. This deep insight helps AI generate more accurate, contextually relevant, and efficient code by understanding the structure and connections within your application's models and database tables.

主要功能

01Automatically discovers Eloquent models from Composer PSR-4 autoload paths
02Maps relationships for one or more models, detailing types, foreign keys, pivot tables, and morph types
03Inspects a model's columns, fillable/guarded, casts, relationships, scopes, observers, and policies
040 GitHub stars
05Lists all Eloquent models with their tables and relationship counts
06Retrieves the database schema for any model or table, including columns, types, indexes, and foreign keys

使用案例

01Enable AI to analyze a specific model's structure, relationships, and attributes for code generation
02Provide AI with database table schemas to ensure correct querying and data manipulation
03Allow an AI assistant to list all models in a Laravel project for an overview