- FastMCP server with 12 tools (pullzone, cache, statistics, shield) - Dockerfile with multi-stage build (python:3.11-slim + uv) - K8s manifests (Deployment + Service) - Gitea Actions CI/CD pipeline (build → push → deploy)
21 lines
509 B
Python
21 lines
509 B
Python
"""Configuration and logging for BunnyCDN MCP server."""
|
|
|
|
import logging
|
|
import os
|
|
|
|
MCP_HOST = os.environ.get("MCP_HOST", "0.0.0.0")
|
|
MCP_PORT = int(os.environ.get("MCP_PORT", "8001"))
|
|
|
|
BUNNY_API_KEY = os.environ.get("BUNNY_API_KEY", "")
|
|
BUNNY_API_BASE = "https://api.bunny.net"
|
|
|
|
REQUEST_TIMEOUT = 60
|
|
|
|
LOG_LEVEL = os.environ.get("LOG_LEVEL", "INFO").upper()
|
|
|
|
logging.basicConfig(
|
|
level=LOG_LEVEL,
|
|
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
|
|
)
|
|
logger = logging.getLogger("bunnycdn-mcp")
|