Skip to contents

Make an app

mcp_app()
Create an MCP App
mcp_tool_module()
Serve a Shiny module as an MCP App
McpApp
MCP App object

UI

mcp_select() mcp_text_input() mcp_numeric_input() mcp_checkbox() mcp_slider() mcp_radio() mcp_action_button()
Inputs for apps built from tools
mcp_plot() mcp_text() mcp_table() mcp_html()
Output placeholders for tool results
mcp_submit_button()
An apply button for apps that wait for it
mcp_input()
Mark an element as an input of an app's tools
mcp_output()
Mark an element as an output of an app's tools

Tools and their results

mcp_result_text() mcp_result_html() mcp_result_table() mcp_result_plot() mcp_result_image() mcp_result_pdf() mcp_result_widget()
Typed output values for tool results
mcp_tool_result()
Set a tool result's text and data explicitly
mcp_request()
Information about the MCP request being handled

Run it

serve()
Serve MCP Apps to an MCP client
mcp_endpoint()
Add an MCP endpoint to a Shiny app
preview_app()
Preview an MCP App in a browser
shinymcp-options
Options

Host apps in Shiny

Show MCP Apps, from this process or any MCP server, in a shinychat conversation or a pane of a Shiny app.

mcp_chat_host()
Host MCP Apps in a shinychat conversation
mcp_host_ui() mcp_host_server() mcp_embed()
Host an MCP App in a Shiny app
as_shinychat_tool() mcp_content_result()
Use an MCP App's tools in a shinychat conversation
mcp_client()
Connect to a remote MCP server
McpClient
A client for a remote MCP server

Serving a Shiny app as it is

For serving an existing Shiny app live, until Shiny’s own MCP support is released. Outside an MCP App, the helpers for server functions do nothing, so the app still runs as usual.

as_mcp_app()
Serve a Shiny app as an MCP App
bindMcp()
Choose what the model sees of a Shiny app
mcp_model_context() mcp_send_message() is_mcp_session()
Talk to the model from a Shiny app served with shinymcp
mcp_host_context()
The chat client around a Shiny app served with shinymcp

Pages built by hand

bridge_script_tag() bridge_config_tag()
The bridge script as an HTML tag