Skip to main content
Glama

RL-MCP

by rlefko
auth.pyโ€ข436 B
import os from fastapi import Depends, HTTPException, status from fastapi.security import APIKeyHeader from utilities import envs API_KEY = os.getenv("API_KEY", "123456789") api_key_scheme = APIKeyHeader(name="x-api-key", auto_error=True) def authenticate(api_key: str = Depends(api_key_scheme)): if api_key == API_KEY: return True raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="Unauthorized")

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/rlefko/rl-mcp'

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