Serve pppower as an MCP server for LLM agents
pppower_mcp_server.RdStarts 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.hostandportfor the HTTP transport.