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

Function update_client_info

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

Update only the client info portion of an entry.

(
    mcp_name: &str,
    info: OAuthClientInfo,
    server_url: Option<&str>,
)

Source from the content-addressed store, hash-verified

129
130/// Update only the client info portion of an entry.
131pub async fn update_client_info(
132 mcp_name: &str,
133 info: OAuthClientInfo,
134 server_url: Option<&str>,
135) -> Result<(), std::io::Error> {
136 let mut entry = get(mcp_name).await.unwrap_or_default();
137 entry.client_info = Some(info);
138 set(mcp_name, entry, server_url).await
139}
140
141/// Store the PKCE code verifier.
142pub async fn update_code_verifier(

Callers

nothing calls this directly

Calls 2

setFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected