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

Method list_with_status

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

Return all servers with their current status (including those that are not connected).

(&self)

Source from the content-addressed store, hash-verified

688 /// Return all servers with their current status (including those that
689 /// are not connected).
690 pub async fn list_with_status(&self) -> Vec<(String, McpStatus)> {
691 self.statuses
692 .read()
693 .await
694 .iter()
695 .map(|(k, v)| (k.clone(), v.clone()))
696 .collect()
697 }
698
699 async fn log_event(&self, name: &str, message: impl Into<String>) {
700 let line = format!("[{}] {}", Utc::now().to_rfc3339(), message.into());

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected