Skip to main content
Glama

Telnyx MCP Server

Official
by team-telnyx
service.py943 B
"""Service utilities.""" from typing import Any, Type from .logger import get_logger logger = get_logger(__name__) def get_authenticated_service(service_cls: Type[Any]) -> Any: """Get an authenticated service using the API key from environment. Args: service_cls: Service class to instantiate Returns: Service instance with authenticated client """ logger.info(f"Getting authenticated service for {service_cls.__name__}") # Use the client from mcp.py that's already initialized with API key from ..mcp import telnyx_client # Log masked API key at debug level if hasattr(telnyx_client, "api_key") and telnyx_client.api_key: masked_key = ( f"{telnyx_client.api_key[:5]}..." if len(telnyx_client.api_key) > 5 else "[REDACTED]" ) logger.debug(f"Using client with API key: {masked_key}") return service_cls(telnyx_client)

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/team-telnyx/telnyx-mcp-server'

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