Skip to main content
Glama
context.rs627 B
use async_trait::async_trait; use si_id::ChangeSetId; use tokio::sync::MappedMutexGuard; use crate::{ history_event::HistoryActor, tenancy::Tenancy, transactions::{ SiDbTransactions, SiDbTransactionsError, }, visibility::Visibility, }; #[async_trait] pub trait SiDbContext { type Transactions: SiDbTransactions; fn history_actor(&self) -> &HistoryActor; async fn txns(&self) -> Result<MappedMutexGuard<'_, Self::Transactions>, SiDbTransactionsError>; fn tenancy(&self) -> &Tenancy; fn visibility(&self) -> &Visibility; fn change_set_id(&self) -> ChangeSetId; }

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