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

Interface McpTransport

crates/opencode-mcp/src/transport.rs:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15#[async_trait]
16pub 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

Callers

nothing calls this directly

Implementers 2

transport.rscrates/opencode-mcp/src/transport.rs
client.rscrates/opencode-mcp/src/client.rs

Calls

no outgoing calls

Tested by

no test coverage detected