Skip to content

Commit 76df1f1

Browse files
committed
👻 Misc fixes
Signed-off-by: JonahSussman <[email protected]>
1 parent f20601b commit 76df1f1

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

kai_mcp_solution_server/tests/mcp_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ async def run_tests(args: MCPClientArgs) -> bool:
303303
print("🔐 Bearer token authentication enabled")
304304

305305
else: # stdio transport
306+
if args.server_path is None:
307+
raise ValueError("server_path is required when using --transport stdio")
306308
print(f"Using server path: {args.server_path}")
307309
logger.debug(
308310
f"Initializing STDIO transport with server path: {args.server_path}"

kai_mcp_solution_server/tests/mcp_loader_script.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,8 @@ async def create_http_client(args: MCPClientArgs) -> AsyncIterator[ClientSession
7070
yield session
7171

7272
except Exception as e:
73-
74-
# def recursive_print_exception(exc: Exception, level: int = 0) -> None:
75-
# indent = " " * level
76-
# print(f"{indent}- {str(exc)}")
77-
# if isinstance(exc, ExceptionGroup):
78-
# for sub_exc in exc.exceptions:
79-
# recursive_print_exception(sub_exc, level + 1)
80-
8173
logger.error("HTTP transport error: %s", str(e), exc_info=True)
8274
print(f"x Error with HTTP transport: {traceback.format_exc()}")
83-
# if isinstance(e, ExceptionGroup):
84-
# for sub_exc in e.exceptions:
85-
# recursive_print_exception(sub_exc)
8675

8776
# Add specific advice for SSL certificate errors
8877
if (

0 commit comments

Comments
 (0)