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

Method oauth_required

crates/opencode-server/src/mcp_oauth.rs:31–39  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

29
30impl McpRuntimeConfig {
31 fn oauth_required(&self) -> bool {
32 matches!(
33 self,
34 McpRuntimeConfig::Remote(RemoteMcpConfig {
35 oauth_enabled: true,
36 ..
37 })
38 )
39 }
40}
41
42#[derive(Debug, Clone, Serialize, Deserialize)]

Callers 5

connectMethod · 0.80
disconnectMethod · 0.80
authenticateMethod · 0.80
remove_oauthMethod · 0.80
default_status_forMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected