Skip to main content
Glama
r-packagedev-mcp

r-packagedev-mcp

by B0ydT

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_packageA

Create a new R package skeleton at the specified path using usethis::create_package(). Sets up DESCRIPTION, NAMESPACE, and the R/ directory.

use_rA

Add a new R source file under R/ in an existing package using usethis::use_r(). Creates 'R/.R' with minimal boilerplate.

use_testA

Create a matching test file under tests/testthat/ for a given function or module using usethis::use_test(). Automatically sets up testthat if not already configured.

use_readme_mdC

Add a README.md to the package root using usethis::use_readme_md().

use_vignetteA

Create a new vignette stub (Rmd file) under vignettes/ using usethis::use_vignette().

use_mit_licenseA

Add an MIT LICENSE file and update DESCRIPTION License field using usethis::use_mit_license().

use_gpl3_licenseA

Add a GPL-3 LICENSE file and update DESCRIPTION License field using usethis::use_gpl3_license().

use_packageB

Add a package dependency to DESCRIPTION using usethis::use_package(). Supports Imports, Suggests, Depends, LinkingTo, and Enhances.

use_testthatB

Configure the testthat testing infrastructure for a package using usethis::use_testthat(). Creates tests/testthat/ and adds testthat to Suggests.

use_gitC

Initialise a Git repository in the package and make an initial commit using usethis::use_git().

use_githubA

Create a GitHub remote for the package and push using usethis::use_github(). Requires a GitHub PAT configured via GITHUB_PAT or gh_token().

use_dataA

Export one or more R objects as package data files under data/ using usethis::use_data(). The objects must already be loaded in the R environment.

use_pipeA

Add the magrittr pipe (%>%) to the package via usethis::use_pipe(). Creates utils-pipe.R and updates NAMESPACE.

load_allA

Simulate installing and attaching the package using devtools::load_all(). Makes all functions available in the current R session for interactive testing.

documentA

Generate roxygen2 documentation and update NAMESPACE using devtools::document(). Reads @-tags from R source and creates man/*.Rd files.

testA

Run the package's test suite (or a filtered subset) using devtools::test(). Reports test results in the chosen format.

checkB

Run R CMD check on the package using devtools::check(). Identifies errors, warnings, and notes that would prevent CRAN submission.

installB

Install the package into the local R library using devtools::install().

buildB

Build a source (or binary) package tarball using devtools::build().

build_readmeA

Render README.Rmd to README.md and update GitHub preview using devtools::build_readme().

spell_checkA

Spell-check the package documentation and vignettes using devtools::spell_check().

renv_initB

Initialise an renv project-local library for the project using renv::init(). Creates renv/ and renv.lock, and updates .Rprofile.

renv_snapshotB

Record the current package dependencies into renv.lock using renv::snapshot().

renv_restoreB

Restore packages from renv.lock to recreate the recorded environment using renv::restore().

renv_statusB

Report whether the project library is synchronised with renv.lock using renv::status().

renv_installB

Install packages into the renv project library using renv::install(). Supports CRAN packages, GitHub (user/repo), or version-pinned installs.

renv_updateA

Update packages in the renv project library using renv::update(). If no package names are given, all outdated packages are updated.

renv_cleanC

Remove unused packages or temporary files from the renv library using renv::clean().

test_fileB

Run a single testthat test file using testthat::test_file(). Useful for rapid iteration on a specific file.

test_dirA

Run all test files in a directory (optionally filtered) using testthat::test_dir(). Returns a summary of pass/fail/skip counts.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 30 tools

Disambiguation5/5

Each tool maps to a distinct usethis, devtools, renv, or testthat operation. Apparent overlaps like test/test_file/test_dir and install/renv_install are clearly separated by scope (suite vs file vs directory; package install vs renv library install).

Naming Consistency4/5

Names are consistently snake_case and organized by recognizable prefixes such as use_, renv_, and test_. The bare devtools-style verbs document, test, check, install, and build break a single verb_noun convention, but they remain readable and domain-appropriate.

Tool Count3/5

At 30 tools, the server is on the heavy side for an MCP surface, though most tools correspond to real R package lifecycle operations rather than filler. Some consolidation is possible (license variants, test variants, renv helper set), but the size is defensible for the broad domain.

Completeness4/5

The set covers package creation, scaffolding, dependencies, documentation, testing, checking, installation, building, Git/GitHub setup, and renv environment management. Minor gaps remain around release/version bumping, NEWS files, pkgdown, or coverage workflows, but core package development is well covered.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues