[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:
Kyrian Obikwelu 2025-09-28 23:58:04 +01:00 • committed by GitHub
commit 41486bfaa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,8 +11,8 @@
namespace Mcp\Tests\Unit;
use Mcp\JsonRpc\Handler;
use Mcp\Server;
use Mcp\Server\Handler\JsonRpcHandler;
use Mcp\Server\Transport\InMemoryTransport;
use PHPUnit\Framework\TestCase;
@ -20,7 +20,7 @@ class ServerTest extends TestCase
{
public function testJsonExceptions()
{
$handler = $this->getMockBuilder(Handler::class)
$handler = $this->getMockBuilder(JsonRpcHandler::class)
->disableOriginalConstructor()
->onlyMethods(['process'])
->getMock();