"""Central FastMCP server instance."""
import logging
from mcp.server.fastmcp import FastMCP
from mcp.server.transport_security import TransportSecuritySettings
logger = logging.getLogger(__name__)
# Disable DNS rebinding protection for ngrok/tunnel compatibility
security = TransportSecuritySettings(enable_dns_rebinding_protection=False)
# Create the MCP instance with stateless mode
mcp = FastMCP(
"Benchmark MCP Server",
streamable_http_path="/v1/mcp",
stateless_http=True,
transport_security=security,
)
logger.info("✓ FastMCP server instance created")