@@ -46,6 +46,9 @@ python manage.py sync_resource_docs_by_archive --gateway-name=${gateway_name} --
4646# 指定参数 --no-pub 则只生成版本,不发布
4747python manage.py create_version_and_release_apigw --gateway-name=${gateway_name} --file=" ${definition_file} "
4848
49+ # 可选:需要同步 MCP Server 时调用。注意:前提是该 stage 有生效的版本且声明的 mcp tool 在生效版本的资源列表里且确认过请求参数
50+ python manage.py sync_apigw_stage_mcp_servers --gateway-name=${gateway_name} --file=" ${definition_file} "
51+
4952# 可选,为应用主动授权
5053python manage.py grant_apigw_permissions --gateway-name=${gateway_name} --file=" ${definition_file} "
5154
@@ -80,6 +83,7 @@ class Command(BaseCommand):
8083 call_command(" sync_apigw_resources" , f " --gateway-name= { gateway_name} " , " --delete" , f " --file= { resources_path} " )
8184 call_command(" sync_resource_docs_by_archive" , f " --gateway-name= { gateway_name} " , f " --file= { definition_path} " )
8285 call_command(" create_version_and_release_apigw" , f " --gateway-name= { gateway_name} " , f " --file= { definition_path} " )
86+ call_command(" sync_apigw_stage_mcp_servers" , f " --gateway-name= { gateway_name} " , f " --file= { definition_path} " )
8387 call_command(" grant_apigw_permissions" , f " --gateway-name= { gateway_name} " , f " --file= { definition_path} " )
8488 call_command(" fetch_apigw_public_key" , f " --gateway-name= { gateway_name} " )
8589```
@@ -162,6 +166,9 @@ python manage.py apply_apigw_permissions --gateway-name=${gateway_name} --file="
162166# 指定参数 --no-pub 则只生成版本,不发布
163167python manage.py create_version_and_release_apigw --gateway-name=${gateway_name} --file=" ${definition_file} "
164168
169+ # 可选:需要同步 MCP Server 时调用。注意:前提是该 stage 有生效的版本且声明的 mcp tool 在生效版本的资源列表里且确认过请求参数
170+ python manage.py sync_apigw_stage_mcp_servers --gateway-name=${gateway_name} --file=" ${definition_file} "
171+
165172# 获取网关公钥
166173python manage.py fetch_apigw_public_key --gateway-name=${gateway_name}
167174
0 commit comments