Skip to main content
Glama

Tavily MCP Server

MIT License
71
  • Linux
  • Apple
server_test.py850 B
#!/usr/bin/env python """ Test script to check if the server module can be instantiated. This is a minimal test that doesn't start an actual server. """ import sys import asyncio from mcp_server_tavily.server import Server from unittest.mock import MagicMock async def test_server(): """Test if the server can be instantiated.""" print(f"Testing with Python {sys.version}") print("Creating server instance...") server = Server("mcp-tavily-test") # Set up mock handler for list_tools tools_called = False @server.list_tools() async def list_tools(): nonlocal tools_called tools_called = True return [] print("✓ Server created and decorator registered") print("\n✅ Server initialization test passed!") if __name__ == "__main__": asyncio.run(test_server())

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RamXX/mcp-tavily'

If you have feedback or need assistance with the MCP directory API, please join our Discord server