MCPcopy Create free account
hub / github.com/AI45Lab/Code / is_global_mcp

Function is_global_mcp

core/src/agent_api/capabilities.rs:249–254  ·  view source on GitHub ↗
(mcp: &Arc<McpManager>, global_mcp: Option<&Arc<McpManager>>)

Source from the content-addressed store, hash-verified

247}
248
249fn is_global_mcp(mcp: &Arc<McpManager>, global_mcp: Option<&Arc<McpManager>>) -> bool {
250 std::ptr::eq(
251 Arc::as_ptr(mcp),
252 global_mcp.map(Arc::as_ptr).unwrap_or(std::ptr::null()),
253 )
254}
255
256fn fetch_session_mcp_tools(mcp: &Arc<McpManager>) -> Vec<(String, McpTool)> {
257 match tokio::runtime::Handle::try_current() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected