


# ══════════════════════════════════════════════════════════════
# GHVTIS-TSQALI-MZE-SIMGHERA-KARTULI-NOMMO-KH-TWJ-SULAKHURI
# ══════════════════════════════════════════════════════════════

# php -- BEGIN cPanel-generated handler, do not edit
# Set the "ea-php81" package as the default "PHP" programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# MCP Protocol Routing
RewriteEngine On

# Route /mcp to the API endpoint
RewriteRule ^mcp/?$ mcp/index.php [L,QSA]

# Route /mcp/* to the API with parameters
RewriteRule ^mcp/(.+)$ mcp/index.php?action=$1 [L,QSA]

# Enable CORS for cross-agent access
<IfModule mod_headers.c>
  Header set Access-Control-Allow-Origin "*"
  Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
  Header set Access-Control-Allow-Headers "Content-Type, X-Agent-ID, X-MCP-Version"
  Header set X-MCP-PDTC ".84375"
</IfModule>

# JSON content type for API responses
<IfModule mod_mime.c>
  AddType application/json .json
</IfModule>
