🧩 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+P→Developer: 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.
Metadata
Release files for mcp-laravel 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_laravel-0.2.8.tar.gz | 6.7 kB | Without provenance | Details for mcp_laravel-0.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_laravel-0.2.8-py3-none-any.whl | Python 3 | none | any | Details for mcp_laravel-0.2.8-py3-none-any.whl |
Total release size: 18.2 kB
Release files / mcp_laravel-0.2.8.tar.gz
| Download URL | mcp_laravel-0.2.8.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35a656be8124c64e03e622adbffcd4c88e7cc93e7f4bdbbe41d907e2b32bb16c
|
|
BLAKE2b-256 checksum How to use checksums |
8169c0764627f1999375c596a35c66a845f7177fade6a744968cee70cbf54ae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / mcp_laravel-0.2.8-py3-none-any.whl
| Download URL | mcp_laravel-0.2.8-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e635cf47742776e4d67f53dc2c932fda37ec67730396279588888f9a29d7c2be
|
|
BLAKE2b-256 checksum How to use checksums |
7c06e3e683b85ff0d8b714f5eac207995d2b4c81afca31361a30b79c1e8ac737
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for mcp-laravel 0.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.