File tree Expand file tree Collapse file tree
src/dashboard/apigateway/apigateway/apps/mcp_server Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727
2828from apigateway .apps .mcp_server .constants import (
2929 ADD_STAGE_MCP_SERVER_PERMISSIONS_BEFORE_RELEASE_UPDATE_TASK_NAME ,
30+ OFFICIAL_MCP_CATEGORY_NAME ,
3031 RECONCILE_STAGE_MCP_SERVER_PERMISSIONS_AFTER_RELEASE_TASK_NAME ,
3132)
3233from apigateway .apps .mcp_server .models import MCPServer , MCPServerCategory
@@ -449,7 +450,7 @@ def sync_mcp_server_after_release(
449450@shared_task (name = "apigateway.apps.mcp_server.tasks.refresh_official_mcp_server_category" , ignore_result = True )
450451def refresh_official_mcp_server_category () -> None :
451452 """定时给官方网关下的 MCP Server 补齐「官方」分类,只补不删。"""
452- official_category = MCPServerCategory .objects .filter (name = "Official" , is_active = True ).first ()
453+ official_category = MCPServerCategory .objects .filter (name = OFFICIAL_MCP_CATEGORY_NAME , is_active = True ).first ()
453454 if official_category is None :
454455 return
455456
You can’t perform that action at this time.
0 commit comments