Skip to content

Commit ede5166

Browse files
committed
Black and isort fixes
Signed-off-by: Madhav Kandukuri <[email protected]>
1 parent 8a559fb commit ede5166

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mcpgateway/schemas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
gateway-specific extensions for federation support.
2020
"""
2121

22-
import json
2322
import base64
23+
import json
2424
import logging
2525
from datetime import datetime
2626
from typing import Any, Dict, List, Literal, Optional, Union
@@ -718,7 +718,7 @@ def _process_auth_fields(values: Dict[str, Any]) -> Optional[Dict[str, Any]]:
718718
if not username or not password:
719719
raise ValueError("For 'basic' auth, both 'auth_username' and 'auth_password' must be provided.")
720720

721-
creds = base64.b64encode(f'{username}:{password}'.encode("utf-8")).decode()
721+
creds = base64.b64encode(f"{username}:{password}".encode("utf-8")).decode()
722722
return encode_auth({"Authorization": f"Basic {creds}"})
723723

724724
if auth_type == "bearer":

mcpgateway/wrapper2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ async def handle_list_tools() -> List[types.Tool]:
314314
RuntimeError: If an error occurs during fetching or processing.
315315
"""
316316
try:
317-
tool_ids = ["0"] if SERVER_CATALOG_URLS[0]==BASE_URL else await get_tools_from_mcp_server(SERVER_CATALOG_URLS)
317+
tool_ids = ["0"] if SERVER_CATALOG_URLS[0] == BASE_URL else await get_tools_from_mcp_server(SERVER_CATALOG_URLS)
318318
metadata = await tools_metadata(tool_ids)
319319
tools = []
320320
for tool in metadata:
@@ -393,7 +393,7 @@ async def handle_list_resources() -> List[types.Resource]:
393393
RuntimeError: If an error occurs during fetching or processing.
394394
"""
395395
try:
396-
ids = ["0"] if SERVER_CATALOG_URLS[0]==BASE_URL else await get_resources_from_mcp_server(SERVER_CATALOG_URLS)
396+
ids = ["0"] if SERVER_CATALOG_URLS[0] == BASE_URL else await get_resources_from_mcp_server(SERVER_CATALOG_URLS)
397397
meta = await resources_metadata(ids)
398398
resources = []
399399
for r in meta:
@@ -456,7 +456,7 @@ async def handle_list_prompts() -> List[types.Prompt]:
456456
RuntimeError: If an error occurs during fetching or processing.
457457
"""
458458
try:
459-
ids = ["0"] if SERVER_CATALOG_URLS[0]==BASE_URL else await get_prompts_from_mcp_server(SERVER_CATALOG_URLS)
459+
ids = ["0"] if SERVER_CATALOG_URLS[0] == BASE_URL else await get_prompts_from_mcp_server(SERVER_CATALOG_URLS)
460460
meta = await prompts_metadata(ids)
461461
prompts = []
462462
for p in meta:

0 commit comments

Comments
 (0)