#!/usr/bin/env php getMessage() . PHP_EOL); exit(1); } putenv('MCP_HTTP_PATH=' . $path); $router = __DIR__ . '/../app/mcp-http-router.php'; $command = [ PHP_BINARY, '-S', $host . ':' . $port, $router, ]; fwrite(STDERR, "redMCP HTTP server listening on http://{$host}:{$port}{$path}\n"); fwrite(STDERR, "Authorization: Bearer is required.\n"); passthru(implode(' ', array_map('escapeshellarg', $command)), $exitCode); exit((int) $exitCode);