Skip to content

Commit 7e81664

Browse files
committed
fix: missing ID in create gateway response
Signed-off-by: Tomas Pilar <[email protected]>
1 parent 0e2b4b8 commit 7e81664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcpgateway/services/gateway_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ async def register_gateway(self, db: Session, gateway: GatewayCreate) -> Gateway
386386
# Notify subscribers
387387
await self._notify_gateway_added(db_gateway)
388388

389-
return GatewayRead.model_validate(gateway)
389+
return GatewayRead.model_validate(db_gateway)
390390
except* GatewayConnectionError as ge:
391391
if TYPE_CHECKING:
392392
ge: ExceptionGroup[GatewayConnectionError]

0 commit comments

Comments
 (0)