PHP code example of eduardocruz / laravel-telescope-mcp-server-mvp
1. Go to this page and download the library: Download eduardocruz/laravel-telescope-mcp-server-mvp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eduardocruz / laravel-telescope-mcp-server-mvp example snippets
Laravel App → Telescope → MySQL Database
↓
PHP MCP Server (php-mcp/server)
↓
Cursor IDE
↓
AI Assistant Integration
bash
php server.php
$config = [
"telescope" => [
"command" => "php",
"args" => [getcwd() . "/server.php"],
"env" => [
"DB_HOST" => "127.0.0.1",
"DB_PORT" => "3306",
"DB_DATABASE" => "your_laravel_db",
"DB_USERNAME" => "your_username",
"DB_PASSWORD" => "your_password"
]
]
];
$encoded = base64_encode(json_encode($config));
echo "cursor://mcp/install?name=telescope&config=" . $encoded . "\n";