fix: add api return uuid

This commit is contained in:
Novice
2025-07-01 14:07:10 +08:00
parent 7ccaadee83
commit 3102a41ab7
2 changed files with 2 additions and 2 deletions

View File

@ -733,7 +733,7 @@ class ToolMCPDetailApi(Resource):
def get(self, provider_id):
user = current_user
provider = MCPToolManageService.get_mcp_provider_by_provider_id(provider_id, user.current_tenant_id)
return jsonable_encoder(ToolTransformService.mcp_provider_to_user_provider(provider))
return jsonable_encoder(ToolTransformService.mcp_provider_to_user_provider(provider, for_list=True))
class ToolMCPListAllApi(Resource):

View File

@ -93,7 +93,7 @@ class MCPToolManageService:
)
db.session.add(mcp_tool)
db.session.commit()
return ToolTransformService.mcp_provider_to_user_provider(mcp_tool)
return ToolTransformService.mcp_provider_to_user_provider(mcp_tool, for_list=True)
@staticmethod
def retrieve_mcp_tools(tenant_id: str, for_list: bool = False) -> list[ToolProviderApiEntity]: