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

Function remove

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

Remove all stored auth data for a server.

(mcp_name: &str)

Source from the content-addressed store, hash-verified

111
112/// Remove all stored auth data for a server.
113pub async fn remove(mcp_name: &str) -> Result<(), std::io::Error> {
114 let mut data = read_all().await;
115 data.remove(mcp_name);
116 write_all(&data).await
117}
118
119/// Update only the tokens portion of an entry.
120pub async fn update_tokens(

Callers 1

remove_authMethod · 0.85

Calls 3

read_allFunction · 0.85
write_allFunction · 0.85
removeMethod · 0.45

Tested by

no test coverage detected