Add redMCP Streamable HTTP server
This commit is contained in:
@@ -3,11 +3,20 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use RedMCP\McpDispatcher;
|
||||
use RedMCP\McpEnvironment;
|
||||
use RedMCP\McpStdioServer;
|
||||
use RedMCP\RedmineClient;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
main();
|
||||
$env = McpEnvironment::load(__DIR__ . '/../.env');
|
||||
$server = new McpStdioServer(
|
||||
new McpDispatcher(RedmineClient::fromCredentials($env['redmine_url'], $env['redmine_api_key']))
|
||||
);
|
||||
$server->run();
|
||||
exit(0);
|
||||
__halt_compiler();
|
||||
|
||||
function main(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user