MCP.so
登录
L

Laravel Codebase Introspection and Analysis MCP Server

@capevace

基本信息

分类

其他

传输方式

stdio

作者

capevace

提交者

Lukas Mateffy

关于 Laravel Codebase Introspection and Analysis MCP Server

MCP Server for Laravel Codebase Intelligence and Introspection

Laravel Codebase Introspection and Analysis MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "laravel-introspect": {
      "command": "php",
      "args": [
        "/path/to/your/codebase/artisan",
        "introspect:mcp"
      ]
    }
  }
}

Laravel Codebase Introspection and Analysis MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Laravel Codebase Introspection and Analysis?

A Model Context Protocol (MCP) server that allows AI agents to query structured information about a Laravel codebase – including views, routes, classes, and models – without reading all the source code. It is built on the mateffy/laravel-introspect package and supports wildcard queries and package introspection.

How to use Laravel Codebase Introspection and Analysis?

Install via Composer as a dev dependency: composer require mateffy/laravel-codebase-mcp --dev. Then add it to your AI agent’s MCP configuration using the artisan command introspect:mcp (see config example in README). The server is currently in beta.

Key features of Laravel Codebase Introspection and Analysis

  • Query views, routes, classes, and models with structured filters
  • Supports wildcard (*) matching for names, paths, etc.
  • Can introspect code from Laravel packages
  • Provides overviews of datamodel and model relationships
  • Works with any AI agent implementing the MCP protocol

Use cases of Laravel Codebase Introspection and Analysis

  • Give an AI an overview of the data model and its relationships
  • Refactor views and verify they are not used elsewhere
  • Find all routes that use a specific controller
  • Locate models using a particular trait or interface
  • Ensure all routes apply correct middleware

常见问题

1

What is the difference between `laravel-codebase-mcp` and `laravel-introspect`?

The MCP server uses the `laravel-introspect` package internally. If you need to run the same queries repeatedly or write tests, you can use the package directly.

2

What are the current runtime requirements or dependencies?

It requires PHP and Composer. There is a known dependency issue with `php-mcp/server` and ReactPHP that may require temporary patched forks (see README for repository overrides).

3

Where does the data live?

The server queries your local Laravel codebase; no external data storage is used.

4

What is the current status of the server?

The MCP server is in beta – bugs are expected.

5

What transport or authentication does it use?

The server runs via an artisan command (`introspect:mcp`) and is configured through your AI agent’s MCP configuration. No specific transport or authentication details are mentioned other than the command invocation.

评论

其他 分类下的更多 MCP 服务器