Skip to main content
Glama

FirstCycling MCP Server

by r-huijts
MIT License
14
  • Apple
test_rider_search.py926 B
from FirstCyclingAPI import search_rider, get_rider_info, search_query_normalizer from FirstCyclingAPI.utils import normalize_rider_name from bs4 import BeautifulSoup import json import sys import os # Update path for fixtures FIXTURES_PATH = os.path.join(os.path.dirname(__file__), 'fixtures') def test_search_query(query): print(f"\nQuery: {query}") print(f"Normalized: {search_query_normalizer(query)}") result = search_rider(query=query, print_result=False) print(json.dumps(result, indent=2)) print("\n") return result def test_search(): """Tests different search queries against the API""" test_cases = [ "van der Poel", "van aert", "tadej poga", "alaphilippe", "remco even", "mads pedersen", "sepp kuss" ] for query in test_cases: test_search_query(query) if __name__ == "__main__": test_search()

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/r-huijts/firstcycling-mcp'

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