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

Function get

crates/opencode-mcp/src/auth.rs:84–87  ·  view source on GitHub ↗

Get the auth entry for a given MCP server name.

(mcp_name: &str)

Source from the content-addressed store, hash-verified

82
83/// Get the auth entry for a given MCP server name.
84pub async fn get(mcp_name: &str) -> Option<AuthEntry> {
85 let data = read_all().await;
86 data.get(mcp_name).cloned()
87}
88
89/// Get the auth entry only if it was stored for the same `server_url`.
90pub async fn get_for_url(mcp_name: &str, server_url: &str) -> Option<AuthEntry> {

Callers 15

finish_authMethod · 0.70
get_for_urlFunction · 0.70
update_tokensFunction · 0.70
update_client_infoFunction · 0.70
update_code_verifierFunction · 0.70
clear_code_verifierFunction · 0.70
update_oauth_stateFunction · 0.70
get_oauth_stateFunction · 0.70
clear_oauth_stateFunction · 0.70
routerFunction · 0.50
session_routesFunction · 0.50
provider_routesFunction · 0.50

Calls 2

read_allFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected