Some checks are pending
Check Python Version Consistency / Check Python Version (push) Waiting to run
17 lines
588 B
Python
17 lines
588 B
Python
from importlib.util import module_from_spec, spec_from_file_location
|
|
from pathlib import Path
|
|
import logging
|
|
|
|
# Suppress logger during import to avoid printing config values
|
|
logging.getLogger("osvx_mcp_server_under_test").setLevel(logging.WARNING)
|
|
|
|
SERVER_PATH = Path(__file__).with_name("server.py")
|
|
spec = spec_from_file_location("osvx_mcp_server_under_test", SERVER_PATH)
|
|
server = module_from_spec(spec)
|
|
spec.loader.exec_module(server)
|
|
|
|
print(f"REGISTERED_TOOL_COUNT={len(server.TOOLS)}")
|
|
print("--- REGISTERED_TOOL_NAMES ---")
|
|
for name in sorted(server.TOOLS.keys()):
|
|
print(name)
|