from __future__ import annotations
import os
from public_apis_mcp.server import create_server
def test_search_tool_smoke():
os.environ["FREE_APIS_MCP_TEST_MODE"] = "1"
mcp = create_server()
# Access the bound tool function directly by calling the original impl through register_tools closure.
# Instead, we test via module functions: ensure index and run embedding.
# Here we just ensure server creation doesn't raise and tools are registered.
assert mcp is not None