Skip to content

Commit e4478d3

Browse files
committed
ruff
Signed-off-by: Rakhi Dutta <rakhibiswas@yahoo.com>
1 parent 098d2a9 commit e4478d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mcpgateway/services/a2a_service.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ async def register_agent(
478478
if auth_type == "query_param":
479479
# Standard
480480
from urllib.parse import urlparse # pylint: disable=import-outside-toplevel
481+
# First-Party
482+
from mcpgateway.config import settings # pylint: disable=import-outside-toplevel
481483

482484
# Service-layer enforcement: Check feature flag
483485
if not settings.insecure_allow_queryparam_auth:
@@ -1275,6 +1277,8 @@ async def update_agent(
12751277
if is_switching_to_queryparam or is_updating_queryparam_creds or (is_url_changing and original_auth_type == "query_param"):
12761278
# Standard
12771279
from urllib.parse import urlparse # pylint: disable=import-outside-toplevel
1280+
# First-Party
1281+
from mcpgateway.config import settings # pylint: disable=import-outside-toplevel
12781282

12791283
# Service-layer enforcement: Check feature flag
12801284
if not settings.insecure_allow_queryparam_auth:

0 commit comments

Comments
 (0)