Improve redMCP server operations
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
use RedMCP\McpDispatcher;
|
||||
use RedMCP\McpDebugLogger;
|
||||
use RedMCP\McpEnvironment;
|
||||
use RedMCP\McpHttpHandler;
|
||||
use RedMCP\RedmineClient;
|
||||
@@ -19,7 +20,10 @@ if ($token === null) {
|
||||
}
|
||||
|
||||
$handler = new McpHttpHandler(
|
||||
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'])
|
||||
),
|
||||
$token,
|
||||
getenv('MCP_HTTP_PATH') ?: '/mcp'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user