Skip to main content
Glama
app_state.rs862 B
use std::sync::Arc; use axum::extract::FromRef; use bedrock_core::ArtifactStoreConfig; use s3::creds::Credentials; use si_data_nats::NatsClient; use tokio_util::sync::CancellationToken; #[remain::sorted] #[derive(Debug, Eq, PartialEq)] pub enum ShutdownSource {} #[derive(Clone, Debug, FromRef)] pub struct AppState { pub nats: Arc<NatsClient>, pub artifact_config: ArtifactStoreConfig, pub aws_credentials: Credentials, shutdown_token: CancellationToken, } impl AppState { #[allow(clippy::too_many_arguments)] pub fn new( nats: Arc<NatsClient>, artifact_config: ArtifactStoreConfig, aws_credentials: Credentials, shutdown_token: CancellationToken, ) -> Self { Self { nats, artifact_config, aws_credentials, 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