Skip to content

Commit 5b1d848

Browse files
authored
Merge pull request #581 from pilartomas/fix-create-gateway-missing-id
fix: missing ID in create gateway response
2 parents 56792fa + 7e81664 commit 5b1d848

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)