Skip to main content
Glama

Convex MCP server

Official
by get-convex
log_visibility.rs1.03 kB
use async_trait::async_trait; use common::{ runtime::Runtime, types::AllowedVisibility, }; use database::Transaction; use keybroker::Identity; /// Trait for handling logging visibility. #[async_trait] pub trait LogVisibility<RT: Runtime>: Send + Sync { /// If true, then block logging from reaching clients unless they have /// admin authorization. async fn should_redact_logs_and_error( &self, tx: &mut Transaction<RT>, identity: Identity, allowed_visibility: AllowedVisibility, ) -> anyhow::Result<bool>; } pub struct RedactLogsToClient { redact: bool, } impl RedactLogsToClient { pub fn new(redact: bool) -> Self { Self { redact } } } #[async_trait] impl<RT: Runtime> LogVisibility<RT> for RedactLogsToClient { async fn should_redact_logs_and_error( &self, _tx: &mut Transaction<RT>, _identity: Identity, _allowed_visibility: AllowedVisibility, ) -> anyhow::Result<bool> { Ok(self.redact) } }

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/get-convex/convex-backend'

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