MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / stdio

Method stdio

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

Create a client that communicates over stdio with a child process.

(
        server_name: String,
        tool_registry: Arc<McpToolRegistry>,
        config: McpServerConfig,
    )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
connect_stdioMethod · 0.80

Tested by

no test coverage detected