PHP code example of particle-academy / fancy-flow-mcp
1. Go to this page and download the library: Download particle-academy/fancy-flow-mcp 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/ */
particle-academy / fancy-flow-mcp example snippets
// config/fancy-flow-mcp.php
'local' => ['enabled' => true, 'name' => 'fancy-flow'],
'web' => ['path' => null, 'middleware' => []], // set a path to expose over HTTP
'store' => ['driver' => 'cache', /* 'array' for a long-lived local server */ ],
use FancyFlow\Mcp\Server\FlowBuilderServer;
use Laravel\Mcp\Facades\Mcp;
Mcp::web('/mcp/fancy-flow', FlowBuilderServer::class)->middleware(['auth:sanctum']);
bash
php artisan mcp:inspector fancy-flow # try it interactively
php artisan mcp:start fancy-flow # (clients usually start this for you)