PHP code example of kinetis / mcp
1. Go to this page and download the library: Download kinetis/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/ */
kinetis / mcp example snippets
use Kinetis\Mcp\Attributes\McpTool;
final readonly class AccountController
{
#[McpTool(name: 'get_user_status', description: 'Retrieve user status by ID')]
public function getUserStatus(int $userId): array
{
return ['userId' => $userId, 'status' => 'active'];
}
}