Create a client that communicates over stdio with a child process.
(
server_name: String,
tool_registry: Arc<McpToolRegistry>,
config: McpServerConfig,
)
| 185 | |
| 186 | /// Create a client that communicates over stdio with a child process. |
| 187 | pub async fn stdio( |
| 188 | server_name: String, |
| 189 | tool_registry: Arc<McpToolRegistry>, |
| 190 | config: McpServerConfig, |
| 191 | ) -> Result<Self, McpClientError> { |
| 192 | let client = Self::new(server_name, tool_registry); |
| 193 | client.connect_stdio(config).await?; |
| 194 | Ok(client) |
| 195 | } |
| 196 | /// Create a client that communicates over StreamableHTTP. |
| 197 | pub async fn http( |
| 198 | server_name: String, |
nothing calls this directly
no test coverage detected