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

Method managed_server

crates/opencode-server/src/mcp_oauth.rs:511–518  ·  view source on GitHub ↗
(&self, server_name: &str)

Source from the content-addressed store, hash-verified

509 }
510
511 async fn managed_server(&self, server_name: &str) -> Result<ManagedServer, McpOAuthError> {
512 self.servers
513 .read()
514 .await
515 .get(server_name)
516 .cloned()
517 .ok_or_else(|| McpOAuthError::ServerNotFound(server_name.to_string()))
518 }
519
520 async fn oauth_status_for(&self, server_name: &str) -> Option<McpOAuthStatus> {
521 self.oauth_states

Callers 7

connectMethod · 0.80
disconnectMethod · 0.80
start_oauthMethod · 0.80
handle_callbackMethod · 0.80
authenticateMethod · 0.80
get_logsMethod · 0.80
restartMethod · 0.80

Calls 2

readMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected