Improve redMCP server operations
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
use RedMCP\McpDispatcher;
|
||||
use RedMCP\McpDebugLogger;
|
||||
use RedMCP\McpEnvironment;
|
||||
use RedMCP\McpStdioServer;
|
||||
use RedMCP\RedmineClient;
|
||||
@@ -12,7 +13,10 @@ require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$env = McpEnvironment::load(__DIR__ . '/../.env');
|
||||
$server = new McpStdioServer(
|
||||
new McpDispatcher(RedmineClient::fromCredentials($env['redmine_url'], $env['redmine_api_key']))
|
||||
new McpDispatcher(
|
||||
RedmineClient::fromCredentials($env['redmine_url'], $env['redmine_api_key']),
|
||||
new McpDebugLogger($env['mcp_debug_log'])
|
||||
)
|
||||
);
|
||||
$server->run();
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user