Skip to contents

Makes an already-running interactive R session discoverable by the MCP server for tool execution. This is the user-facing lifecycle entry point for collaborative sessions and is paired with mcpr_session_stop(). For MCPR-owned headless/secondary sessions, use mcp_session() instead.

Usage

mcpr_session_start(timeout_seconds = 900)

Arguments

timeout_seconds

Timeout in seconds before session cleanup (default: 900)

Value

mcprSession instance (invisibly)

Details

Make R Session Available to MCP Server

Examples

if (FALSE) { # \dontrun{
mcpr_session_start()
} # }