% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mcp_tools.R
\name{reliapltr_mcp_server}
\alias{reliapltr_mcp_server}
\title{Launch a ReliaPlotR MCP Server.}
\usage{
reliapltr_mcp_server(...)
}
\arguments{
\item{...}{Additional arguments passed to [mcptools::mcp_server()], such as
`type = "stdio"` (default) or `type = "http"`.}
}
\value{
Called for its side effect of launching a blocking MCP server
  process.
}
\description{
Starts a Model Context Protocol (MCP) server that exposes five reliability
analysis tools to MCP clients such as Claude Code and Claude Desktop.
}
\details{
\describe{
  \item{`fit_weibull`}{Fits a Weibull or lognormal distribution to
    time-to-failure data (optionally with right-censored suspensions) and
    returns parameter estimates and goodness-of-fit metrics.}
  \item{`fit_alt`}{Fits an Accelerated Life Test (ALT) model across
    multiple stress levels and returns per-stress-level parameters and the
    global life-stress relationship coefficients.}
  \item{`plot_weibull`}{Fits a Weibull or lognormal distribution and returns
    a Weibull probability plot as a plotly JSON string.}
  \item{`plot_alt`}{Fits an ALT model and returns probability and life-stress
    relationship plots as plotly JSON strings.}
  \item{`plot_rga`}{Fits a Crow-AMSAA reliability growth model and returns a
    cumulative failure plot as a plotly JSON string.}
}


Both `mcptools` (>= 0.2.0) and `ellmer` must be installed. They are listed
in `Suggests` and are not automatically installed with ReliaPlotR.
`jsonlite` is also required for the `fit_alt` tool.

**Registering with Claude Code:**
```bash
claude mcp add -s user reliapltr -- \
  Rscript -e "ReliaPlotR::reliapltr_mcp_server()"
```

Alternatively, use the bundled launcher script:
```bash
claude mcp add -s user reliapltr -- \
  Rscript /path/to/ReliaPlotR/mcp/server.R
```
}
