Skip to main content
Glama

WebSearch MCP Server

by Howe829
test_github_search.py583 B
import pytest import re from providers.factory import WebSearchProviderFactory from providers.enums import WebSearchProvidersEnum, GithubSearchTypesEnum from http_client import aio_client @pytest.mark.parametrize( "query, expected", [ ("Qwen3", "Qwen3"), ], ) @pytest.mark.asyncio async def test_github_search(query, expected): factory = WebSearchProviderFactory() engine = factory.get_provider(WebSearchProvidersEnum.GITHUB.value) result = await engine.search(query, type=GithubSearchTypesEnum.REPO) print(result) assert expected in 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/Howe829/websearch-mcp-server'

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