[Server] Reorganize server handlers and transport structure for better organization (#86)
* refactor: reorganize server handlers and transport structure * feat: move the test files to corresponding directories * fix: linter issues * fix: correct PHPDoc formatting and streamline handler imports * refactor: update import statement for ServerBuilder to Builder
This commit is contained in:
parent
3dcd2f717a
commit
41486bfaa4
1 changed files with 65 additions and 67 deletions
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
namespace Mcp;
|
||||
|
||||
use Mcp\JsonRpc\Handler;
|
||||
use Mcp\Server\Builder;
|
||||
use Mcp\Server\TransportInterface;
|
||||
use Mcp\Server\Handler\JsonRpcHandler;
|
||||
use Mcp\Server\Transport\TransportInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Psr\Log\NullLogger;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
|
|
@ -25,7 +25,7 @@ use Symfony\Component\Uid\Uuid;
|
|||
final class Server
|
||||
{
|
||||
public function __construct(
|
||||
private readonly Handler $jsonRpcHandler,
|
||||
private readonly JsonRpcHandler $jsonRpcHandler,
|
||||
private readonly LoggerInterface $logger = new NullLogger(),
|
||||
) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue