PHPackages                             larafony/mcp-assistant - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. larafony/mcp-assistant

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

larafony/mcp-assistant
======================

AI-powered development assistant for Larafony framework - learn the framework, generate code, and build apps with zero friction

1.0.0(4mo ago)01[1 issues](https://github.com/DJWeb-Damian-Jozwiak/larafony-mcp-assistant/issues)MITPHPPHP &gt;=8.5

Since Dec 23Pushed 4mo agoCompare

[ Source](https://github.com/DJWeb-Damian-Jozwiak/larafony-mcp-assistant)[ Packagist](https://packagist.org/packages/larafony/mcp-assistant)[ Docs](https://www.larafony.com)[ RSS](/packages/larafony-mcp-assistant/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Larafony 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!
---------------------------------------

[](#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

[](#connect-to-public-mcp-server)

Add the Larafony MCP server URL to your AI assistant:

```
https://larafony.com/mcp

```

This gives you instant access to:

- Complete framework documentation (36 topics)
- Project structure information
- Learning prompts and debugging helpers

AI Assistant Configuration
--------------------------

[](#ai-assistant-configuration)

### Claude Desktop

[](#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)**

```
{
  "mcpServers": {
    "larafony": {
      "url": "https://larafony.com/mcp"
    }
  }
}
```

**Option B: Local Development Server**

```
{
  "mcpServers": {
    "larafony": {
      "command": "php",
      "args": ["/path/to/your/project/bin/larafony", "mcp:start"]
    }
  }
}
```

[Claude Desktop MCP Documentation](https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop)

### Cursor IDE

[](#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)**

```
{
  "mcpServers": {
    "larafony": {
      "url": "https://larafony.com/mcp"
    }
  }
}
```

**Option B: Local Development Server**

```
{
  "mcpServers": {
    "larafony": {
      "command": "php",
      "args": ["/path/to/your/project/bin/larafony", "mcp:start"]
    }
  }
}
```

[Cursor MCP Documentation](https://cursor.com/docs/context/mcp)

### Claude Code CLI

[](#claude-code-cli)

**Option A: Remote Server (Recommended)**

```
claude mcp add larafony --url https://larafony.com/mcp --scope user
```

**Option B: Local Development Server**

```
claude mcp add larafony --scope user -- php /path/to/your/project/bin/larafony mcp:start
```

Useful commands:

```
claude mcp list              # List all configured servers
claude mcp remove larafony   # Remove server
claude mcp get larafony      # Test server connection
```

Scope options:

- `--scope local` - Current project only (default)
- `--scope project` - Shared via `.mcp.json`
- `--scope user` - All your projects

[Claude Code MCP Documentation](https://code.claude.com/docs/en/mcp)

### OpenAI Codex

[](#openai-codex)

Edit `~/.codex/config.toml`:

```
[mcp.larafony]
url = "https://larafony.com/mcp"
```

Or add via CLI:

```
codex mcp add larafony --url https://larafony.com/mcp
```

[Codex MCP Documentation](https://developers.openai.com/codex/mcp/)

### ChatGPT

[](#chatgpt)

ChatGPT does not currently support MCP servers natively. Use Claude Desktop, Cursor, Claude Code, or Codex instead.

---

Local Installation (For Development)
------------------------------------

[](#local-installation-for-development)

If you want to run the MCP assistant locally with full scaffolding tools:

### Requirements

[](#requirements)

- PHP 8.5+
- Larafony Core 2.0+
- Composer

### Installation

[](#installation)

```
composer require larafony/mcp-assistant
```

Register the service provider in `bootstrap/app.php`:

```
use Larafony\McpAssistant\McpAssistantServiceProvider;

$app->withServiceProviders([
    // ... other providers
    McpAssistantServiceProvider::class
]);
```

### Configuration

[](#configuration)

Create or update `config/mcp.php`:

```
