You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
-
# Laravel MCP (Model Context Protocol)
1
+
# Laravel MCP
2
2
3
-
[Model Context Protocol (MCP)](https://modelcontextprotocol.io/) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). It aims to be like a USB-C port for AI applications, enabling standardized connections between AI models and various data sources or tools.
4
-
5
-
This Laravel package helps you build MCP-compliant servers within your Laravel applications. These servers can then expose tools that AI agents can use. It provides a structured way to define servers and their capabilities (tools), accessible via streamed HTTP (web) or STDIO (local artisan commands).
3
+
## Introduction
4
+
Laravel MCP gives you everything you need to build Laravel-powered MCP servers and let AI talk to your app.
6
5
7
6
## Table of Contents
8
7
@@ -23,17 +22,21 @@ This Laravel package helps you build MCP-compliant servers within your Laravel a
-[What's Not Included (Yet!)](#whats-not-included-yet)
25
24
26
-
## Setup
25
+
## Installation
26
+
27
+
To get started, install Laravel MCP via the Composer package manager:
27
28
28
-
### Publishing Routes
29
+
```bash
30
+
composer require laravel/mcp
31
+
```
29
32
30
-
The package offers an optional route file `routes/ai.php` to define your MCP servers. To publish this file to your application\'s `routes` directory, run the following Artisan command:
33
+
Next, you can optionally publish the `routes/ai.php`file to define your MCP servers:
31
34
32
35
```bash
33
36
php artisan vendor:publish --tag=ai-routes
34
37
```
35
38
36
-
The package automatically loads routes defined in this file. Web routes will be prefixed with `/mcp`.
39
+
The package will automatically register MCP server defined in this file.
0 commit comments