#!/usr/bin/env python3 """ Start script for just the MCP server (for testing) """ import asyncio import sys import os # Add the web directory to the path sys.path.insert(0, os.path.dirname(__file__)) def main(): """Main entry point.""" print("Starting MCP server only...") print("=" * 40) print() try: # Import and start the MCP server from mcp_server import RTSGameMCP print("āœ… MCP server module imported successfully") # Create an instance server = RTSGameMCP() print(f"āœ… MCP server created: {server.mcp.name}") print(f" Host: {server.mcp.settings.host}") print(f" Port: {server.mcp.settings.port}") print() print("šŸš€ Starting MCP server...") print("Press Ctrl+C to stop the server") print() # Start the server asyncio.run(server.run()) except KeyboardInterrupt: print("\n\nšŸ‘‹ MCP server stopped.") except Exception as e: print(f"āŒ Failed to start MCP server: {e}") sys.exit(1) if __name__ == "__main__": main()