def test_starter_runs()

in projects/unit3/build-mcp-server/starter/validate_starter.py [0:0]


def test_starter_runs():
    """Test that the starter code can at least be executed."""
    print("\nExecution Test:")
    
    try:
        # Try to import and check if server can be initialized
        import server
        # If we can import it and it has the right attributes, it should run
        if hasattr(server, 'mcp') and hasattr(server, 'analyze_file_changes'):
            print("✓ Server imports and initializes correctly")
            return True
        else:
            print("✗ Server missing required components")
            return False
        
    except Exception as e:
        print(f"✗ Failed to initialize server: {e}")
        return False