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

Method fmt

crates/opencode-mcp/src/client.rs:47–57  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

45
46impl std::fmt::Display for McpStatus {
47 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
48 match self {
49 McpStatus::Connected => write!(f, "connected"),
50 McpStatus::Disabled => write!(f, "disabled"),
51 McpStatus::Failed { error } => write!(f, "failed: {error}"),
52 McpStatus::NeedsAuth => write!(f, "needs_auth"),
53 McpStatus::NeedsClientRegistration { error } => {
54 write!(f, "needs_client_registration: {error}")
55 }
56 }
57 }
58}
59
60// ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected