Skip to main content
Glama

Laravel 助手 MCP

⚠️ ALPHA 软件警告⚠️ 此软件包目前处于 Alpha 测试阶段。API 和功能如有变更,恕不另行通知。在生产环境中使用,风险自负。

概述

一组专为与Cursor IDE集成而设计的 Laravel 辅助工具,可直接在编辑器中改善开发工作流程和调试功能。

Related MCP server: Tall MCP Server

光标集成

此软件包旨在增强您在 Cursor IDE 中的 Laravel 开发体验。所有工具均可直接通过 Cursor 的命令面板访问,并与您的开发工作流程无缝集成。

可用工具

  • tail_log_file :直接在 Cursor 中查看 Laravel 日志文件中的最新条目

  • search_log_errors :通过日志文件搜索特定的错误模式并获取综合结果

  • run_artisan_command :直接从 Cursor 执行 Laravel artisan 命令

  • show_model :在编辑器中显示模型信息和关系

安装

  1. 克隆存储库:

git clone https://github.com/your-username/laravel-mcp.git
cd laravel-mcp
  1. 创建一个 shell 脚本包装器(例如~/bin/run-laravel-mcp ):

#!/bin/bash

# Point to your Laravel project path
export LARAVEL_PATH=/path/to/your/laravel/project

# Run the MCP server
mcp run /path/to/laravel-helpers-mcp/server.py
  1. 使脚本可执行:

chmod +x ~/bin/run-laravel-mcp
  1. 确保~/bin在您的 PATH 中:

echo 'export PATH="$HOME/bin:$PATH"' >> ~/.zshrc  # or ~/.bashrc
source ~/.zshrc  # or source ~/.bashrc

要求

贡献

该项目正在积极开发中。欢迎提出问题和提交 Pull 请求。

执照

[许可证类型] - 详情请参阅许可证文件

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides AI assistants with direct access to Laravel documentation, coding rules, and implementation templates stored locally. It enables searching documentation, retrieving design system guides, and accessing domain-specific code examples to streamline Laravel development.
      8
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to introspect a Laravel application's routes, models, controllers, migrations, and more through the Model Context Protocol, running locally via php artisan commands and filesystem scanning.
      6 npm
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables Laravel API integration with Cursor, providing tools for routes, models, Artisan commands, configuration, and Redis cache management through Docker.
      -