MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-mcp/src/oauth.rs:73–80  ·  view source on GitHub ↗
(mcp_name: String, server_url: String, config: McpOAuthConfig)

Source from the content-addressed store, hash-verified

71
72impl McpOAuthManager {
73 pub fn new(mcp_name: String, server_url: String, config: McpOAuthConfig) -> Self {
74 Self {
75 mcp_name,
76 server_url,
77 config,
78 pending: RwLock::new(None),
79 }
80 }
81
82 /// Validate config and return parsed URL components.
83 fn parsed_config(

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected