#!/usr/bin/env python3
"""
Test script for fetchRecommendations function
"""
from server import fetchRecommendations
def test_fetch_recommendations():
"""Test the fetchRecommendations function"""
# Test parameters - replace with your actual values
publisher_name = "nbcnewyork-com" # Replace with your publisher name
api_key = "your-api-key-here" # Replace with your actual API key
print(f"Testing fetchRecommendations with:")
print(f" Publisher: {publisher_name}")
print(f" API Key: {api_key[:10]}...") # Only show first 10 chars for security
print()
# Call the function
result = fetchRecommendations(publisher_name, api_key)
print("Result:")
print(result)
if __name__ == "__main__":
test_fetch_recommendations()
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/okochansky/MCPTaboolaAPI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server