Skip to main content
Glama

Convex MCP server

Official
by get-convex
access_token_auth.rs732 B
use async_trait::async_trait; use errors::ErrorMetadata; use keybroker::Identity; /// Logic to check authorization based on Access Token #[async_trait] pub trait AccessTokenAuth: Send + Sync { async fn is_authorized( &self, instance_name: &str, access_token: &str, ) -> anyhow::Result<Identity>; } pub struct NullAccessTokenAuth; #[async_trait] impl AccessTokenAuth for NullAccessTokenAuth { async fn is_authorized( &self, _instance_name: &str, _access_token: &str, ) -> anyhow::Result<Identity> { anyhow::bail!(ErrorMetadata::unauthenticated( "BadAdminKey", "The provided admin key was invalid for this instance", )) } }

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