Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ has_server
Method
has_server
crates/opencode-server/src/mcp_oauth.rs:120–122 ·
view source on GitHub ↗
(&self, server_name: &str)
Source
from the content-addressed store, hash-verified
118
}
119
120
pub async fn has_server(&self, server_name: &str) -> bool {
121
self.servers.read().await.contains_key(server_name)
122
}
123
124
pub async fn add_server(
125
&self,
Callers
2
sync_mcp_from_disk
Function · 0.80
ensure_mcp_server_registered
Function · 0.80
Calls
1
read
Method · 0.80
Tested by
no test coverage detected