We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zazencodes/public-apis-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_tools.py•494 B
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