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

Method restart

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

Source from the content-addressed store, hash-verified

456 }
457
458 pub async fn restart(&self, server_name: &str) -> Result<McpServerInfo, McpOAuthError> {
459 self.managed_server(server_name).await?;
460 self.log_event(server_name, "info", "Restart requested")
461 .await;
462 let _ = self.disconnect(server_name).await;
463 self.connect(server_name).await
464 }
465
466 pub async fn remove_oauth(&self, server_name: &str) -> bool {
467 let removed = self

Callers 1

restart_mcpFunction · 0.45

Calls 4

managed_serverMethod · 0.80
disconnectMethod · 0.80
log_eventMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected