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

Method new

crates/opencode-server/src/mcp_oauth.rs:91–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90impl McpOAuthManager {
91 pub fn new() -> Self {
92 Self {
93 oauth_states: Arc::new(RwLock::new(HashMap::new())),
94 servers: Arc::new(RwLock::new(HashMap::new())),
95 statuses: Arc::new(RwLock::new(HashMap::new())),
96 logs: Arc::new(RwLock::new(HashMap::new())),
97 clients: Arc::new(McpClientRegistry::new()),
98 }
99 }
100
101 async fn log_event(
102 &self,

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected