mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
feat(mcp): Add flexible input parsing to handle double-serialized requests (#36249)
This commit is contained in:
@@ -38,6 +38,7 @@ from superset.mcp_service.system.system_utils import (
|
||||
calculate_popular_content,
|
||||
calculate_recent_activity,
|
||||
)
|
||||
from superset.mcp_service.utils.schema_utils import parse_request
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -71,6 +72,7 @@ _instance_info_core = InstanceInfoCore(
|
||||
|
||||
@mcp.tool
|
||||
@mcp_auth_hook
|
||||
@parse_request(GetSupersetInstanceInfoRequest)
|
||||
def get_instance_info(
|
||||
request: GetSupersetInstanceInfoRequest, ctx: Context
|
||||
) -> InstanceInfo:
|
||||
|
||||
Reference in New Issue
Block a user