Download the PHP package larafony/mcp-assistant without Composer
On this page you can find all versions of the php package larafony/mcp-assistant. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download larafony/mcp-assistant
More information about larafony/mcp-assistant
Files in larafony/mcp-assistant
Package mcp-assistant
Short Description AI-powered development assistant for Larafony framework - learn the framework, generate code, and build apps with zero friction
License MIT
Homepage https://www.larafony.com
Informations about the package mcp-assistant
Larafony MCP Assistant
AI-powered development assistant for the Larafony PHP 8.5 framework. Provides scaffolding tools, documentation resources, and learning prompts accessible via Model Context Protocol (MCP).
Quick Start - No Installation Required!
You don't need to clone any repository or install anything locally. Larafony provides a public MCP server that you can connect to directly from your AI assistant.
Connect to Public MCP Server
Add the Larafony MCP server URL to your AI assistant:
This gives you instant access to:
- Complete framework documentation (36 topics)
- Project structure information
- Learning prompts and debugging helpers
AI Assistant Configuration
Claude Desktop
Edit your configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/claude/claude_desktop_config.json
Option A: Remote Server (Recommended)
Option B: Local Development Server
Claude Desktop MCP Documentation
Cursor IDE
Open MCP settings: Ctrl+Shift+P → "Cursor Settings" → MCP section.
Or edit ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
Option A: Remote Server (Recommended)
Option B: Local Development Server
Claude Code CLI
Option A: Remote Server (Recommended)
Option B: Local Development Server
Useful commands:
Scope options:
--scope local- Current project only (default)--scope project- Shared via.mcp.json--scope user- All your projects
OpenAI Codex
Edit ~/.codex/config.toml:
Or add via CLI:
ChatGPT
ChatGPT does not currently support MCP servers natively. Use Claude Desktop, Cursor, Claude Code, or Codex instead.
Local Installation (For Development)
If you want to run the MCP assistant locally with full scaffolding tools:
Requirements
- PHP 8.5+
- Larafony Core 2.0+
- Composer
Installation
Register the service provider in bootstrap/app.php:
Configuration
Create or update config/mcp.php:
Available Tools (Local Installation Only)
Scaffolding tools require local installation and create files in your project.
| Tool | Description | Parameters |
|---|---|---|
make_controller |
Generate controller with routes | name, resource (bool) |
make_model |
Generate ORM model | name, migration (bool), fillable (string[]) |
make_view |
Generate Blade view | name, layout, title |
make_job |
Generate queueable job | name |
make_migration |
Generate database migration | name, table |
make_command |
Generate console command | name, command_name |
Tool Examples
Create a resource controller:
"Create a PostController with all CRUD methods"
Create a model with migration:
"Create a Comment model with migration"
Available Resources
Resources are available both on the public server and local installations.
Project Structure
| URI | Name | Description |
|---|---|---|
project://structure |
project-structure |
Complete project directory overview |
project://controllers |
project-controllers |
List of controllers with their routes |
project://models |
project-models |
List of ORM models |
Framework Documentation
Getting Started
| URI | Name | Description |
|---|---|---|
docs://getting-started |
getting-started-docs |
Introduction to Larafony framework |
docs://bootstrap |
bootstrap-docs |
How to bootstrap a Larafony application |
docs://structure |
structure-docs |
Larafony project directory structure |
HTTP Layer
| URI | Name | Description |
|---|---|---|
docs://controllers |
controllers-docs |
Controllers and routing with #[Route] attributes |
docs://middleware |
middleware-docs |
PSR-15 middleware |
docs://http-client |
http-client-docs |
PSR-18 HTTP client |
Views
| URI | Name | Description |
|---|---|---|
docs://views |
views-docs |
Blade views with components |
docs://validation |
validation-docs |
DTO validation |
docs://inertia |
inertia-docs |
Inertia.js + Vue SPAs |
Database
| URI | Name | Description |
|---|---|---|
docs://models |
models-docs |
ORM models with property hooks |
docs://query-builder |
query-builder-docs |
Query builder |
docs://schema-builder |
schema-builder-docs |
Migrations and schema |
Architecture
| URI | Name | Description |
|---|---|---|
docs://container |
container-docs |
PSR-11 dependency injection |
docs://config |
config-docs |
Configuration management |
docs://cache |
cache-docs |
PSR-6 caching |
docs://auth |
auth-docs |
RBAC authorization |
Security
| URI | Name | Description |
|---|---|---|
docs://encryption |
encryption-docs |
Data encryption |
docs://session |
session-docs |
Sessions and cookies |
Utilities
| URI | Name | Description |
|---|---|---|
docs://events |
events-docs |
PSR-14 event system |
docs://logging |
logging-docs |
PSR-3 logging |
Async
| URI | Name | Description |
|---|---|---|
docs://queue |
queue-docs |
Background jobs and queues |
docs://websockets |
websockets-docs |
Real-time communication |
Communication
| URI | Name | Description |
|---|---|---|
docs://mail |
mail-docs |
Email sending |
Debugging
| URI | Name | Description |
|---|---|---|
docs://error-handling |
error-handling-docs |
Error and exception handling |
docs://console-debugging |
console-debugging-docs |
Console debugging |
docs://debugbar |
debugbar-docs |
PHP Debug Bar |
Bridges (Third-party Integrations)
| URI | Name | Description |
|---|---|---|
docs://bridges |
bridges-docs |
Overview of integrations |
docs://bridge-carbon |
bridge-carbon-docs |
Carbon date/time |
docs://bridge-flysystem |
bridge-flysystem-docs |
Flysystem file storage |
docs://bridge-guzzle |
bridge-guzzle-docs |
Guzzle HTTP client |
docs://bridge-monolog |
bridge-monolog-docs |
Monolog logging |
docs://bridge-phpdotenv |
bridge-phpdotenv-docs |
PHP dotenv |
docs://bridge-symfony-mailer |
bridge-symfony-mailer-docs |
Symfony Mailer |
docs://bridge-twig |
bridge-twig-docs |
Twig templates |
docs://bridge-smarty |
bridge-smarty-docs |
Smarty templates |
docs://bridge-debugbar |
bridge-debugbar-docs |
Debug Bar integration |
Available Prompts
Learning Prompts
| Prompt | Description | Parameters |
|---|---|---|
learn_larafony |
Guided topic learning | topic (routing, models, controllers, views, middleware, validation, testing, overview) |
build_feature |
Step-by-step feature building | feature (description of what to build) |
Debugging Prompts
| Prompt | Description | Parameters |
|---|---|---|
debug_error |
Debug error messages | error, file (optional) |
debug_route |
Debug routing issues | path, method, expected (optional) |
debug_model |
Debug ORM/database issues | model, issue |
debug_view |
Debug Blade view issues | view, issue |
Prompt Examples
Learn about models:
"Teach me about Larafony ORM models"
Build a feature:
"Help me build user authentication"
Larafony Conventions
This assistant understands and follows Larafony conventions:
Routing
Models
Views
Development
Adding New Tools
Create a class in src/Tools/:
Adding New Resources
Create a class in src/Resources/:
Adding New Prompts
Create a class in src/Prompts/:
Running Tests
Learn How It's Built - From Scratch
Interested in how Larafony is built step by step?
Check out my full PHP 8.5 course, where I explain everything from architecture to implementation - no magic, just clean code.
Get it now at masterphp.eu
License
MIT License. Larafony-mcp-assistant is open-sourced software licensed under the MIT license.
Links
- Larafony Framework
- MCP SDK
- Model Context Protocol
- masterphp.eu - Full tutorials and documentation