@@ -11,21 +11,25 @@ export ENABLE_ADMIN_UI=$(bashio::config 'enable_admin_ui')
1111export ADMIN_USERNAME=$(bashio::config 'admin_username')
1212export ADMIN_PASSWORD=$(bashio::config 'admin_password')
1313export TOOLS_FOLDER=$(bashio::config 'tools_folder')
14- export MCP_PROXY_SSE_ALLOWED_KEYS =$(bashio::config 'mcp_proxy_sse_allowed_keys ')
15-
14+ export ALLOWED_KEYS =$(bashio::config 'allowed_keys ')
15+ export ALLOWED_TOKENS=$(bashio::config 'allowed_tokens')
1616bashio::log.info "Starting MCP Proxy Server..."
1717bashio::log.info "Port: ${PORT}"
1818bashio::log.info "Admin UI Enabled: ${ENABLE_ADMIN_UI}"
1919if [[ "${ENABLE_ADMIN_UI}" == "true" ]]; then
2020 bashio::log.info "Admin Username: ${ADMIN_USERNAME}"
2121fi
2222bashio::log.info "Tools Folder: ${TOOLS_FOLDER}" # This is /share/mcp_tools by default
23- if [[ -n "${MCP_PROXY_SSE_ALLOWED_KEYS }" ]]; then
23+ if [[ -n "${ALLOWED_KEYS }" ]]; then
2424 bashio::log.info "Allowed SSE Keys are configured."
2525else
26- bashio::log.info "No SSE Keys configured, SSE endpoint is open or uses internal auth."
26+ bashio::log.info "No SSE Keys configured."
27+ fi
28+ if [[ -n "${ALLOWED_TOKENS}" ]]; then
29+ bashio::log.info "Allowed SSE TOKENS are configured."
30+ else
31+ bashio::log.info "No SSE TOKENS configured."
2732fi
28-
2933# --- Define application paths ---
3034# APP_BASE_DIR is the working directory set in Dockerfile, and where app files are copied.
3135APP_BASE_DIR="/mcp-proxy-server"
0 commit comments