PHP code example of autodudes / ai-suite-mcp
1. Go to this page and download the library: Download autodudes/ai-suite-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/ */
autodudes / ai-suite-mcp example snippets
public function getName(): string; // unique tool name, used by the LLM
public function getDescription(): string; // shown to the model when picking tools
public function getSchema(): array; // JSON Schema for the input arguments
public function execute(array $params): CallToolResult;
public function getRequiredScope(): ?string; // null = no scope check
nginx
location ~ \.php$ {
fastcgi_param HTTP_AUTHORIZATION $http_authorization;
# ... your existing fastcgi_params