From b5bd439ee8eef4c8ec987c184a72d169cefd15ba Mon Sep 17 00:00:00 2001 From: zacksmash Date: Wed, 5 Nov 2025 11:18:48 -0700 Subject: [PATCH 1/2] Add MCP service provider to testbench config --- testbench.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/testbench.yaml b/testbench.yaml index 8786cfc..a73ed47 100644 --- a/testbench.yaml +++ b/testbench.yaml @@ -1,4 +1,5 @@ laravel: '@testbench' providers: + - Laravel\Mcp\Server\McpServiceProvider - Workbench\App\Providers\WorkbenchServiceProvider From c94066ad2221957030d84d86ce1ab756f27d9617 Mon Sep 17 00:00:00 2001 From: Pushpak Chhajed Date: Thu, 6 Nov 2025 09:43:32 +0530 Subject: [PATCH 2/2] Fix Linting --- src/Server.php | 2 +- tests/Unit/Exceptions/JsonRpcExceptionTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Server.php b/src/Server.php index eedc951..95c9110 100644 --- a/src/Server.php +++ b/src/Server.php @@ -160,7 +160,7 @@ public function handle(string $rawMessage): void $jsonRequest = json_decode($rawMessage, true); if (json_last_error() !== JSON_ERROR_NONE) { - throw new JsonRpcException('Parse error: Invalid JSON was received by the server.', -32700, null); + throw new JsonRpcException('Parse error: Invalid JSON was received by the server.', -32700); } $request = isset($jsonRequest['id']) diff --git a/tests/Unit/Exceptions/JsonRpcExceptionTest.php b/tests/Unit/Exceptions/JsonRpcExceptionTest.php index b511cf4..2fe2073 100644 --- a/tests/Unit/Exceptions/JsonRpcExceptionTest.php +++ b/tests/Unit/Exceptions/JsonRpcExceptionTest.php @@ -27,7 +27,6 @@ message: 'Not found', code: -32601, requestId: 'abc-123', - data: null, ); $response = $exception->toJsonRpcResponse();