55 unmodified lines565758595955 unmodified lines # --- Launch the App and MCP Server ---# mcp_server=True is the magic parameter that exposes your function as an MCP tooldemo.launch(mcp_server=True,share=True)demo.launch(mcp_server=True)