Skip to content

Commit 39728ed

Browse files
madhav165crivetimihai
authored andcommitted
copied from main
Signed-off-by: Madhav Kandukuri <[email protected]>
1 parent f6c7ff7 commit 39728ed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mcpgateway/services/gateway_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ async def fetch_tools_after_oauth(self, db: Session, gateway_id: str) -> Dict[st
653653
try:
654654
db_tool = DbTool(
655655
original_name=tool.name,
656-
original_name_slug=slugify(tool.name),
656+
custom_name=tool.name,
657+
custom_name_slug=slugify(tool.name),
657658
url=gateway.url.rstrip("/"),
658659
description=tool.description,
659660
integration_type="MCP", # Gateway-discovered tools are MCP type

tests/unit/mcpgateway/test_main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"gatewayId": "gateway_id",
9999
"gatewaySlug": "gateway_slug",
100100
"originalNameSlug": "original_name_slug",
101+
"customNameSlug": "custom_name_slug",
101102
}
102103

103104

0 commit comments

Comments
 (0)