No MCP button in View API in Workflow
Author: yvrjsharmaCreated Sep 8, 2026Updated Sep 13, 2026
Labelsbug
Describe the bug
Expected: the Gradio Workflow's View API panel surfaces the MCP connection details, as Blocks does.
Actual: it doesn't, so a user has no in-app way to discover the /gradio_api/mcp/ URL or connect a client.
Have you searched existing issues?
- I have searched and found no existing issues
Reproduction
With gr.Interface:
import gradio as gr
def shout(text: str) -> str:
"""Uppercase the text."""
return text.upper()
# Note that: footer shows "Use via API or MCP"
gr.Interface(shout, "textbox", "textbox").launch(mcp_server=True, )With gr.Workflow:
import gradio as gr
def shout(text: str) -> str:
"""Uppercase the text."""
return text.upper()
# Workflow: "View API" modal shows only Python/JavaScript/curl, no MCP
gr.Workflow(bind=[shout]).launch(mcp_server=True,)Screenshot
With gr.Interface:
With gr.Workflow:
****
Logs
System Info
Windows 11
gradio sdk 6.26.0Severity
I can work around it
Source: gradio-app/gradio