mirror of
https://github.com/apache/superset.git
synced 2026-07-29 01:52:26 +00:00
fix(mcp): resolve chatbot tool call flakiness with URL and instruction fixes (#38532)
(cherry picked from commit 6ef4794778)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user