Skip to content

[Server] Rework transport architecture and add StreamableHttpTransport #79

[Server] Rework transport architecture and add StreamableHttpTransport

[Server] Rework transport architecture and add StreamableHttpTransport #79

Triggered via pull request September 21, 2025 03:46
Status Failure
Total duration 47s
Artifacts

pipeline.yaml

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

Annotations

10 errors
qa: src/Server/ServerBuilder.php#L59
Property Mcp\Server\ServerBuilder::$cache (Mcp\Server\CacheInterface|null) is never assigned Mcp\Server\CacheInterface so it can be removed from the property type.
qa: src/Server/ServerBuilder.php#L0
Ignored error pattern #^Property Mcp\\Server\\ServerBuilder\:\:\$cache has unknown class Psr\\SimpleCache\\CacheInterface as its type\.$# (class.notFound) in path /home/runner/work/php-sdk/php-sdk/src/Server/ServerBuilder.php was not matched in reported errors.
qa: src/Server/ServerBuilder.php#L0
Ignored error pattern #^Property Mcp\\Server\\ServerBuilder\:\:\$cache \(Psr\\SimpleCache\\CacheInterface\|null\) is never assigned Psr\\SimpleCache\\CacheInterface so it can be removed from the property type\.$# (property.unusedType) in path /home/runner/work/php-sdk/php-sdk/src/Server/ServerBuilder.php was not matched in reported errors.
qa: src/Server.php#L63
Parameter #1 $listener of method Mcp\Server\TransportInterface::onSessionEnd() expects callable(Mcp\Server\Uuid): void, Closure(Symfony\Component\Uid\Uuid): void given.
qa: examples/10-simple-http-transport/McpElements.php#L94
Method Mcp\Example\HttpTransportExample\McpElements::greetPrompt() return type has no value type specified in iterable type array.
qa: examples/10-simple-http-transport/McpElements.php#L75
Method Mcp\Example\HttpTransportExample\McpElements::getAppConfig() return type has no value type specified in iterable type array.
qa: examples/10-simple-http-transport/McpElements.php#L55
Method Mcp\Example\HttpTransportExample\McpElements::getServerStatus() return type has no value type specified in iterable type array.
qa: examples/09-standalone-cli/index.php#L27
Parameter #3 $sessionStore of class Mcp\JsonRpc\Handler constructor expects Mcp\Server\Session\SessionStoreInterface, Symfony\Component\Console\Logger\ConsoleLogger given.
qa: examples/09-standalone-cli/index.php#L26
Parameter #2 $sessionFactory of class Mcp\JsonRpc\Handler constructor expects Mcp\Server\Session\SessionFactoryInterface, list<Mcp\Server\MethodHandlerInterface> given.
qa: examples/09-standalone-cli/index.php#L24
Class Mcp\JsonRpc\Handler constructor invoked with 3 parameters, 4-5 required.