mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat(mcp): Add flexible input parsing to handle double-serialized requests (#36249)
This commit is contained in:
@@ -40,6 +40,7 @@ from superset.mcp_service.chart.schemas import (
|
||||
UpdateChartPreviewRequest,
|
||||
URLPreview,
|
||||
)
|
||||
from superset.mcp_service.utils.schema_utils import parse_request
|
||||
from superset.mcp_service.utils.url_utils import get_mcp_service_url
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -47,6 +48,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
@mcp.tool
|
||||
@mcp_auth_hook
|
||||
@parse_request(UpdateChartPreviewRequest)
|
||||
def update_chart_preview(
|
||||
request: UpdateChartPreviewRequest, ctx: Context
|
||||
) -> Dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user