Skip to main content

Servidor MCP para automatizar a criação de estruturas no Laravel

Project description

🧩 mcp-laravel

Servidor Model Context Protocol (MCP) em Python para automatizar a criação de repositórios, contracts e injeção de dependência no Laravel — direto do seu editor com IA.


✨ O que ele faz

Com um simples prompt para a IA, o servidor gera automaticamente:

Artefato Caminho gerado
Contract app/Repositories/Contracts/{Entidade}RepositoryContract.php
Repository app/Repositories/Eloquent/{Entidade}RepositoryEloquent.php
AppServiceProvider Bindings registrados automaticamente

📋 Pré-requisitos

  • Python 3.10+ instalado e adicionado ao PATH

🚀 Instalação

Primeira instalação:

pip install mcp-laravel

Atualizar para a versão mais recente:

pip install --upgrade mcp-laravel

⚙️ Configuração na IDE

Adicione o bloco abaixo ao seu arquivo mcp.json (VS Code ou Cursor):

{
  "mcpServers": {
    "mcp-laravel": {
      "command": "python",
      "args": ["-m", "mcp_laravel.app"]
    }
  }
}

Após salvar, recarregue a janela do editor:

  • VS Code / Cursor: Ctrl+Shift+PDeveloper: Reload Window
  • Ou clique em Restart no painel de configurações do MCP

💬 Como usar

Com o servidor ativo, basta pedir para a IA no chat do seu editor:

Crie a estrutura de repositórios e contracts para a model `Cliente` no meu projeto Laravel.

O MCP cuidará de tudo — criando os arquivos nos diretórios corretos e registrando os bindings no AppServiceProvider.


📄 Licença

Distribuído sob a licença MIT. Consulte o arquivo LICENSE para mais informações.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_laravel-0.1.8.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_laravel-0.1.8-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_laravel-0.1.8.tar.gz.

File metadata

  • Download URL: mcp_laravel-0.1.8.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for mcp_laravel-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c0a4fba70f4cef4b177a2e6da91948b4e9d2d51686318218e98948efff4b409e
MD5 4793d3c310e405713b8e47e48ad2b961
BLAKE2b-256 e8bd004516477a8a792826fe886ac3655010121c52ef84b28a55e498ce1df57b

See more details on using hashes here.

File details

Details for the file mcp_laravel-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: mcp_laravel-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for mcp_laravel-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 af97bb35ad4360b059f28f58027dacaac24bc33f1717e3ce0035c76c5ebef958
MD5 be98567a195f7ebb004518fb5f2febd3
BLAKE2b-256 feb970177024ea7065f2ff90bd4c3e93a2564e96fd8ab965b85a9ce76539c345

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page