Writes the configuration file of mcp_client_config() for Claude Code at
the root of the package, as <package>.json, and adds it to
.Rbuildignore and .gitignore: it holds the path of the current
Rscript, which differs from one machine to the next.
Usage
add_mcp_client_config(mordew_wd = get_mordew_wd(), overwrite = FALSE)Arguments
- mordew_wd
Path to the package,
get_mordew_wd()by default.- overwrite
Whether to replace an existing file.
Examples
path <- file.path(
tempfile(),
"runlog"
)
create_mordew(
path
)
add_mcp_client_config(
path,
overwrite = TRUE
)