Spaces:
Sleeping
Sleeping
| """ | |
| Test final de l'application MCP complète | |
| """ | |
| import os | |
| from mcp_server import create_mcp_interface | |
| # Hugging Face configuration | |
| hf_token = os.environ.get("HF_TOKEN") | |
| if hf_token: | |
| os.environ["HF_TOKEN"] = hf_token | |
| os.environ["DATASET_ID"] = "HackathonCRA/2024" | |
| def test_final_mcp_app(): | |
| """Test final de l'application MCP complète""" | |
| print("🧪 Test final de l'application MCP complète...") | |
| try: | |
| demo = create_mcp_interface() | |
| print("✅ Interface créée avec succès") | |
| # Test du lancement avec mcp_server=True | |
| print("🚀 Test du lancement avec mcp_server=True...") | |
| print("✅ Application prête pour déploiement !") | |
| print("📋 5 onglets disponibles") | |
| print("🔧 12 resources MCP avec @gr.mcp.resource") | |
| print("🎯 mcp_server=True activé") | |
| return True | |
| except Exception as e: | |
| print(f"❌ Erreur: {e}") | |
| import traceback | |
| traceback.print_exc() | |
| return False | |
| if __name__ == "__main__": | |
| test_final_mcp_app() | |