| 14 | |
| 15 | #[async_trait] |
| 16 | pub trait McpTransport: Send + Sync { |
| 17 | async fn send(&self, request: &JsonRpcRequest) -> Result<(), McpClientError>; |
| 18 | async fn receive(&self) -> Result<Option<JsonRpcMessage>, McpClientError>; |
| 19 | async fn close(&self) -> Result<(), McpClientError>; |
| 20 | } |
| 21 | |
| 22 | // --------------------------------------------------------------------------- |
| 23 | // StdioTransport |
nothing calls this directly
no outgoing calls
no test coverage detected