Skip to main content
Glama

dbt-mcp

Official
by dbt-labs
transport.py700 B
import logging from typing import Literal logger = logging.getLogger(__name__) TransportType = Literal["stdio", "sse", "streamable-http"] VALID_TRANSPORTS: set[TransportType] = {"stdio", "sse", "streamable-http"} def validate_transport(transport: str) -> TransportType: """Validate and return the MCP transport type.""" transport = transport.strip().lower() if transport not in VALID_TRANSPORTS: valid_options = ", ".join(sorted(VALID_TRANSPORTS)) raise ValueError( f"Invalid MCP_TRANSPORT: '{transport}'. Must be one of: {valid_options}" ) logger.debug(f"Using MCP transport: {transport}") return transport # type: ignore[return-value]

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/dbt-labs/dbt-mcp'

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