superconductor/streamable-http-transport

Streamable HTTP transport protocol for the Superconductor MCP framework.

20241105.5.0 2025-09-04 19:49 UTC

This package is auto-updated.

Last update: 2025-09-04 19:49:56 UTC


README

  1. To spin up a client:
use Superconductor\Transports\StreamableHttp\Support\Facades\StreamableHttp;
use Superconductor\Transports\StreamableHttp\DTO\Servers\StreamableServerConfig;

// Define the command to run the MCP server
$mcp_server_config = [
    "url" => "https://api.githubcopilot.com/mcp/",
    "headers" => [
        "Authorization" => "auth_token"
    ],
];

$mcp_server = new StreamableServerConfig(...$mcp_server_config)

// Start the client by passing in the command configuration
$client = StreamableHttp::client($mcp_server)