mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
feat(mcp): Add flexible input parsing to handle double-serialized requests (#36249)
This commit is contained in:
@@ -32,12 +32,14 @@ from superset.mcp_service.chart.schemas import (
|
||||
serialize_chart_object,
|
||||
)
|
||||
from superset.mcp_service.mcp_core import ModelGetInfoCore
|
||||
from superset.mcp_service.utils.schema_utils import parse_request
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@mcp.tool
|
||||
@mcp_auth_hook
|
||||
@parse_request(GetChartInfoRequest)
|
||||
async def get_chart_info(
|
||||
request: GetChartInfoRequest, ctx: Context
|
||||
) -> ChartInfo | ChartError:
|
||||
|
||||
Reference in New Issue
Block a user