Skip to main content
Glama
utils.py898 B
"""Utility functions for Graphiti MCP Server.""" from collections.abc import Callable def create_azure_credential_token_provider() -> Callable[[], str]: """ Create Azure credential token provider for managed identity authentication. Requires azure-identity package. Install with: pip install mcp-server[azure] Raises: ImportError: If azure-identity package is not installed """ try: from azure.identity import DefaultAzureCredential, get_bearer_token_provider except ImportError: raise ImportError( 'azure-identity is required for Azure AD authentication. ' 'Install it with: pip install mcp-server[azure]' ) from None credential = DefaultAzureCredential() token_provider = get_bearer_token_provider( credential, 'https://cognitiveservices.azure.com/.default' ) return token_provider

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/getzep/graphiti'

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