INNER CODE UNIT · Python

start_mcp_server

prajwalshettydev/UnrealGenAISupport · Content/Python/init_unreal.py:25

def start_mcp_server():
    """Start the external MCP server process"""
    global mcp_server_process
    try:
        # Find our plugin's Python directory
        plugin_python_path = None
        for path in sys.path:
            if "GenerativeAISupport/Content/Python" in path:
                plugin_python_path = path
                break

        if not plugin_python_path:
            log.log_error("Could not find plugin Python path")
            return False

        # Get the mcp_server.py path
        mcp_server_path = os.path.join(plugin_python_path, "mcp_server.py")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…