Skip to main content
Glama

CodeGraph CLI MCP Server

by Jakedismo
test_helpers.rs1.11 kB
#[cfg(test)] pub mod test_utils { use crate::AppState; use codegraph_core::ConfigManager; use std::sync::Arc; impl AppState { /// Creates a new AppState instance specifically for testing purposes. /// This method initializes AppState with default test configuration. pub async fn new_for_testing() -> Self { let config = Arc::new( ConfigManager::new().expect("Failed to create test config manager") ); Self::new(config) .await .expect("Failed to create test AppState") } /// Creates a new AppState instance with a custom test configuration. pub async fn new_with_test_config(config: Arc<ConfigManager>) -> Self { Self::new(config) .await .expect("Failed to create test AppState with custom config") } } /// Helper function to create a minimal test configuration pub fn create_test_config() -> Arc<ConfigManager> { Arc::new(ConfigManager::new().expect("Failed to create test config")) } }

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