Skip to content

[Server] Decouple Protocol from TransportInterface for reusability #302

[Server] Decouple Protocol from TransportInterface for reusability

[Server] Decouple Protocol from TransportInterface for reusability #302

Triggered via pull request November 21, 2025 12:45
Status Failure
Total duration 2m 1s
Artifacts

pipeline.yaml

on: pull_request
Matrix: unit
Fit to window
Zoom out
Zoom in

Annotations

10 errors
qa: src/Server/Transport/StdioTransport.php#L22
Class Mcp\Server\Transport\StdioTransport has `@implements` tag, but does not implement any interface.
qa: src/Server/Transport/ManagesTransportCallbacks.php (in context of class Mcp/Server/Transport/BaseTransport)#L49
Property Mcp\Server\Transport\BaseTransport::$messageListener (callable(Mcp\Server\Transport\TransportInterface<mixed>, string, Symfony\Component\Uid\Uuid|null): void) does not accept callable(string, Symfony\Component\Uid\Uuid|null): void.
qa: src/Server/Transport/InMemoryTransport.php#L42
Property Mcp\Server\Transport\BaseTransport::$messageListener (callable(Mcp\Server\Transport\TransportInterface<mixed>, string, Symfony\Component\Uid\Uuid|null): void) does not accept callable(string, Symfony\Component\Uid\Uuid|null): void.
qa: src/Server/Transport/InMemoryTransport.php#L22
Class Mcp\Server\Transport\InMemoryTransport has `@implements` tag, but does not implement any interface.
qa: src/Server/Protocol.php#L508
Method Mcp\Server\Protocol::resolveSession() has parameter $transport with generic interface Mcp\Server\Transport\TransportInterface but does not specify its types: TResult
qa: src/Server/Protocol.php#L288
Method Mcp\Server\Protocol::sendResponse() has parameter $transport with generic interface Mcp\Server\Transport\TransportInterface but does not specify its types: TResult
qa: src/Server/Protocol.php#L145
Method Mcp\Server\Protocol::handleRequest() has parameter $transport with generic interface Mcp\Server\Transport\TransportInterface but does not specify its types: TResult
qa: src/Server/Protocol.php#L137
Method Mcp\Server\Protocol::handleInvalidMessage() has parameter $transport with generic interface Mcp\Server\Transport\TransportInterface but does not specify its types: TResult
qa: src/Server/Protocol.php#L101
Method Mcp\Server\Protocol::processInput() has parameter $transport with generic interface Mcp\Server\Transport\TransportInterface but does not specify its types: TResult
qa: src/Server/Protocol.php#L81
Parameter #1 $listener of method Mcp\Server\Transport\TransportInterface<mixed>::onMessage() expects callable(string, Symfony\Component\Uid\Uuid|null): void, Closure(Mcp\Server\Transport\TransportInterface, string, Symfony\Component\Uid\Uuid|null): void given.