import pytest
from web_search import web_search
def test_web_search():
"""
Tests that the web_search tool returns a string.
"""
# We can't easily mock the google search, so we'll just
# test that the function runs without error and returns a string.
# This is more of an integration test than a unit test.
result = web_search("what is the capital of France?")
assert isinstance(result, str)
assert result
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/hexdecimal16/web-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server