We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/unionai-oss/union-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
auth.py•489 B
"""Authentication utilities for Union MCP v2 server."""
from __future__ import annotations
from flyte._context import internal_ctx
def get_authorization_header() -> str:
"""
Extract the Authorization header from the Flyte internal context.
Returns:
The authorization header if present.
"""
api_key = ""
for key, value in internal_ctx().data.metadata:
if key == "authorization":
api_key = value
break
return api_key