PHP code example of klapaudius / symfony-mcp-server
1. Go to this page and download the library: Download klapaudius/symfony-mcp-server 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/ */
klapaudius / symfony-mcp-server example snippets
use KLP\KlpMcpServer\Services\ToolService\ToolInterface;
class MyCustomTool implements ToolInterface
{
// Tool implementation
}
yaml
klp_mcp_server:
resource: '@KlpMcpServerBundle/Resources/config/routes.php'
type: php
bash
php bin/console make:mcp-tool MyCustomTool