Skip to main content
Glama

CodeGraph CLI MCP Server

by Jakedismo
failover.rsโ€ข446 B
use crate::types::{Endpoint, EndpointPool}; use std::sync::Arc; #[derive(Debug, Clone, Copy)] pub enum FailoverStrategy { NextHealthy, // Future: ZoneAware, FallbackPool } pub fn next_healthy<'a>( pool: &'a EndpointPool, preferred: &Arc<Endpoint>, ) -> Option<Arc<Endpoint>> { let eps = pool.healthy_endpoints(); for ep in eps { if ep.id != preferred.id { return Some(ep); } } None }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jakedismo/codegraph-rust'

If you have feedback or need assistance with the MCP directory API, please join our Discord server