Initial commit: BunnyCDN MCP server with K8s deployment
- 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)
This commit is contained in:
20
bunnycdn_mcp/config.py
Normal file
20
bunnycdn_mcp/config.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""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")
|
||||
Reference in New Issue
Block a user