From c88154bb9bba92543d147e5c6a551608404b02d8 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 15 Dec 2025 16:32:42 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20refactor:=20Increase=20retry=20l?= =?UTF-8?q?imits=20and=20delay=20for=20MCP=20server=20creation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated MAX_CREATE_RETRIES from 3 to 5 to allow for more attempts during server creation. * Increased RETRY_BASE_DELAY_MS from 10 to 25 milliseconds to provide a longer wait time between retries, improving stability in server initialization. --- packages/data-schemas/src/methods/mcpServer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/data-schemas/src/methods/mcpServer.ts b/packages/data-schemas/src/methods/mcpServer.ts index 4250e1db24..dd7876f03e 100644 --- a/packages/data-schemas/src/methods/mcpServer.ts +++ b/packages/data-schemas/src/methods/mcpServer.ts @@ -5,8 +5,8 @@ import logger from '~/config/winston'; import { nanoid } from 'nanoid'; const NORMALIZED_LIMIT_DEFAULT = 20; -const MAX_CREATE_RETRIES = 3; -const RETRY_BASE_DELAY_MS = 10; +const MAX_CREATE_RETRIES = 5; +const RETRY_BASE_DELAY_MS = 25; /** * Helper to check if an error is a MongoDB duplicate key error.