daniielyan's picture
Prepare for Gradio Agents & MCP Hackathon 2025 submission - Add comprehensive README.md with mcp-server-track tag - Create app.py entry point for Hugging Face Spaces - Update requirements.txt with all dependencies - Add env.example for environment configuration - Ready for Track 1: MCP Server/Tool submission
f6f24f7
#!/usr/bin/env python3
"""
Job Search MCP Server - Hugging Face Spaces Entry Point
This is the entry point for running the Job Search MCP Server on Hugging Face Spaces.
It imports and launches the main application with MCP server capabilities.
"""
import os
import sys
# Add the project root to Python path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from main import create_gradio_interface, mcp_server
def main():
"""Launch the Job Search MCP Server on Hugging Face Spaces."""
print("πŸš€ Starting Job Search MCP Server on Hugging Face Spaces...")
# Create the Gradio interface
demo = create_gradio_interface()
# Launch with settings optimized for Hugging Face Spaces
demo.launch(
server_name="0.0.0.0", # Allow external connections
server_port=7860, # Default HF Spaces port
mcp_server=True, # Enable MCP server functionality
share=False, # Don't create gradio.live link
show_error=True, # Show detailed errors
quiet=False, # Show startup logs
)
if __name__ == "__main__":
main()