codeslord commited on
Commit
5ba03ea
·
1 Parent(s): be6c0ec

fixing mcp server not found issue

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -313,5 +313,7 @@ with gr.Blocks(title="PixelForge AI - Game Asset Studio") as demo:
313
  )
314
 
315
  if __name__ == "__main__":
 
 
316
  # Launch with MCP support enabled
317
- demo.launch(mcp_server=True)
 
313
  )
314
 
315
  if __name__ == "__main__":
316
+ # Enable MCP support via environment variable
317
+ os.environ["GRADIO_MCP_SERVER"] = "True"
318
  # Launch with MCP support enabled
319
+ demo.launch()