Skip to contents

Main Functions

Core functions for adding MCP support to Plumber APIs

pr_mcp()
Add MCP (Model Context Protocol) support to a Plumber router
pr_mcp_http()
Add MCP support via HTTP transport
pr_mcp_stdio()
Run MCP server with stdio transport

Resources

Functions for adding MCP resources to expose R content

pr_mcp_resource()
Add a resource to an MCP-enabled Plumber router
pr_mcp_help_resources()
Add built-in R help resources to an MCP-enabled Plumber router

Prompts

Functions for adding MCP prompts to guide AI interactions

pr_mcp_prompt()
Add a prompt template to an MCP-enabled Plumber router