fix(mcp): resolve chatbot tool call flakiness with URL and instruction fixes (#38532)

(cherry picked from commit 6ef4794778)
This commit is contained in:
Amin Ghadersohi
2026-03-09 23:35:50 +01:00
committed by Joe Li
parent c5d51ed944
commit e2f50f7dab

View File

@@ -35,6 +35,7 @@ from superset.mcp_service.sql_lab.schemas import (
SqlLabResponse,
)
from superset.mcp_service.utils.schema_utils import parse_request
from superset.mcp_service.utils.url_utils import get_superset_base_url
logger = logging.getLogger(__name__)
@@ -105,7 +106,7 @@ def open_sql_lab_with_context(
# Construct SQL Lab URL with full base URL
query_string = urlencode(params)
url = f"/sqllab?{query_string}"
url = f"{get_superset_base_url()}/sqllab?{query_string}"
logger.info(
"Generated SQL Lab URL for database %s", request.database_connection_id