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 getAnnotations(): array; // MCP behavioural hints (readOnlyHint, destructiveHint, …)
public function execute(array $params): CallToolResult;
public function getRequiredScope(): ?string; // informational; the enforced scope comes from TOOL_SCOPE_MAP
public function getCreditCost(): ?int; // fixed credit cost per call if known; null = no fixed cost (not necessarily free)
nginx
location ~ \.php$ {
fastcgi_param HTTP_AUTHORIZATION $http_authorization;
# ... your existing fastcgi_params