Adopt Schema component in server handlers
This commit is contained in:
parent
6025f890f9
commit
09707b4798
1 changed files with 1516 additions and 2424 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace Mcp;
|
||||
|
||||
use Mcp\Server\JsonRpcHandler;
|
||||
use Mcp\JsonRpc\Handler;
|
||||
use Mcp\Server\TransportInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Psr\Log\NullLogger;
|
||||
|
|
@ -22,7 +22,7 @@ use Psr\Log\NullLogger;
|
|||
final class Server
|
||||
{
|
||||
public function __construct(
|
||||
private readonly JsonRpcHandler $jsonRpcHandler,
|
||||
private readonly Handler $jsonRpcHandler,
|
||||
private readonly LoggerInterface $logger = new NullLogger(),
|
||||
) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue