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
auth.rs•530 B
use common::components::ComponentId;
use keybroker::Identity;
/// We only let auth propagate across function calls within the root component,
/// with the special case of permitting admin auth to always propagate.
pub fn propagate_component_auth(
identity: &Identity,
caller: ComponentId,
callee_is_root: bool,
) -> Identity {
if identity.is_admin() {
return identity.clone();
}
if caller.is_root() && callee_is_root {
identity.clone()
} else {
Identity::Unknown(None)
}
}