libmuscle.mcp.transport_client module¶
- class libmuscle.mcp.transport_client.TransportClient[source]¶
Bases:
object
A client that connects to an MCP server.
This is a base class for MCP Transport Clients. An MCP Transport Client connects to an MCP Transport Server over some communication protocol, requests messages from it, and returns responses.
- call(request: bytes) bytes [source]¶
Send a request to the server and receive the response.
This is a blocking call.
- Parameters
request – The request to send
- Returns
The received response