|
|
|
@ -659,6 +659,9 @@ class ToolProviderMCPApi(Resource):
|
|
|
|
parser.add_argument("provider_id", type=str, required=True, nullable=False, location="json")
|
|
|
|
parser.add_argument("provider_id", type=str, required=True, nullable=False, location="json")
|
|
|
|
args = parser.parse_args()
|
|
|
|
args = parser.parse_args()
|
|
|
|
if not validators.url(args["server_url"]):
|
|
|
|
if not validators.url(args["server_url"]):
|
|
|
|
|
|
|
|
if "[__HIDDEN__]" in args["server_url"]:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
else:
|
|
|
|
raise ValueError("Server URL is not valid.")
|
|
|
|
raise ValueError("Server URL is not valid.")
|
|
|
|
MCPToolManageService.update_mcp_provider(
|
|
|
|
MCPToolManageService.update_mcp_provider(
|
|
|
|
tenant_id=current_user.current_tenant_id,
|
|
|
|
tenant_id=current_user.current_tenant_id,
|
|
|
|
|