MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / add_client

Method add_client

crates/opencode-mcp/src/client.rs:835–840  ·  view source on GitHub ↗

Backwards-compatible alias for `add_stdio`.

(
        &self,
        config: McpServerConfig,
    )

Source from the content-addressed store, hash-verified

833
834 /// Backwards-compatible alias for `add_stdio`.
835 pub async fn add_client(
836 &self,
837 config: McpServerConfig,
838 ) -> Result<Arc<McpClient>, McpClientError> {
839 self.add_stdio(config).await
840 }
841
842 pub async fn get(&self, name: &str) -> Option<Arc<McpClient>> {
843 self.clients.read().await.get(name).cloned()

Callers 1

connectMethod · 0.80

Calls 1

add_stdioMethod · 0.80

Tested by

no test coverage detected