Skip to main content
Glama
app_state.rs777 B
use axum::extract::FromRef; use si_data_ssm::ParameterStoreClient; use tokio_util::sync::CancellationToken; use crate::parameter_cache::ParameterCache; #[remain::sorted] #[derive(Debug, Eq, PartialEq)] pub enum ShutdownSource {} #[derive(Clone, Debug, FromRef)] pub struct AppState { pub parameter_cache: ParameterCache, pub parameter_store_client: ParameterStoreClient, shutdown_token: CancellationToken, } impl AppState { #[allow(clippy::too_many_arguments)] pub fn new( parameter_cache: ParameterCache, parameter_store_client: ParameterStoreClient, shutdown_token: CancellationToken, ) -> Self { Self { parameter_cache, parameter_store_client, shutdown_token, } } }

Latest Blog Posts

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/systeminit/si'

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