From 39728ed651d968f69dc41c141b07e520c00c9f18 Mon Sep 17 00:00:00 2001 From: Madhav Kandukuri Date: Thu, 21 Aug 2025 11:20:14 +0530 Subject: [PATCH] copied from main Signed-off-by: Madhav Kandukuri --- mcpgateway/services/gateway_service.py | 3 ++- tests/unit/mcpgateway/test_main.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mcpgateway/services/gateway_service.py b/mcpgateway/services/gateway_service.py index 739cc0d30..7dcde43d9 100644 --- a/mcpgateway/services/gateway_service.py +++ b/mcpgateway/services/gateway_service.py @@ -653,7 +653,8 @@ async def fetch_tools_after_oauth(self, db: Session, gateway_id: str) -> Dict[st try: db_tool = DbTool( original_name=tool.name, - original_name_slug=slugify(tool.name), + custom_name=tool.name, + custom_name_slug=slugify(tool.name), url=gateway.url.rstrip("/"), description=tool.description, integration_type="MCP", # Gateway-discovered tools are MCP type diff --git a/tests/unit/mcpgateway/test_main.py b/tests/unit/mcpgateway/test_main.py index 84bd90c30..37db2fd2c 100644 --- a/tests/unit/mcpgateway/test_main.py +++ b/tests/unit/mcpgateway/test_main.py @@ -98,6 +98,7 @@ "gatewayId": "gateway_id", "gatewaySlug": "gateway_slug", "originalNameSlug": "original_name_slug", + "customNameSlug": "custom_name_slug", }