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:
kappa
2026-02-15 15:19:42 +09:00
commit 7269686179
16 changed files with 530 additions and 0 deletions

20
bunnycdn_mcp/config.py Normal file
View 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")