Skip to contents

Starts a Model Context Protocol (MCP) server, through the mcptools package, that exposes the tools from pppower_mcp_tools(). MCP clients such as Claude Code or Claude Desktop can then call the design calculations directly. The function blocks while the server runs, so it is meant to be launched by the client, e.g. claude mcp add pppower -- Rscript -e "pppower::pppower_mcp_server()".

Usage

pppower_mcp_server(type = c("stdio", "http"), ...)

Arguments

type

Transport, "stdio" (default) or "http".

...

Passed to mcptools::mcp_server(), e.g. host and port for the HTTP transport.

Value

Does not return while the server is running.