We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kwenhwang/hrfco-service'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
#!/usr/bin/env python3
"""
Test intelligent water search functions
"""
import asyncio
import json
from smart_water_search import SmartWaterSearch
async def test_all_functions():
"""Test all intelligent search functions"""
print("π§ͺ Testing Intelligent Water Search System")
search = SmartWaterSearch()
# Test 1: search_water_station_by_name
print("\nπ Test 1: search_water_station_by_name('νκ°')")
result1 = await search.search_stations_by_name("νκ°", limit=3)
print(f"β
Found {result1.get('found_stations', 0)} stations")
if result1.get('stations'):
print(f" First station: {result1['stations'][0]['name']}")
# Test 2: get_water_info_by_location
print("\nπ Test 2: get_water_info_by_location('μμΈ μμ')")
result2 = await search.get_water_info_by_location("μμΈ μμ", limit=2)
print(f"β
Status: {result2.get('status', 'unknown')}")
if result2.get('data', {}).get('stations'):
print(f" Found: {len(result2['data']['stations'])} stations")
# Test 3: recommend_nearby_stations
print("\nπ Test 3: recommend_nearby_stations('λΆμ°')")
result3 = await search.recommend_nearby_stations("λΆμ°", radius=30)
print(f"β
Recommendations: {len(result3.get('recommendations', []))}")
# Test response sizes
print("\nπ Response Size Analysis:")
print(f" Test 1 size: {len(json.dumps(result1, ensure_ascii=False))} bytes")
print(f" Test 2 size: {len(json.dumps(result2, ensure_ascii=False))} bytes")
print(f" Test 3 size: {len(json.dumps(result3, ensure_ascii=False))} bytes")
print("\nπ All tests completed successfully!")
if __name__ == "__main__":
asyncio.run(test_all_functions())