Skip to contents

Turns the @mcpTool functions of a package into its tool registry, mordew_registry, its @mcpResource functions into mordew_resources, and its @mcpPrompt functions into mordew_prompts. Enable it in the package's DESCRIPTION with Roxygen: list(roclets = c("collate", "namespace", "rd", "mordew::registry_roclet")).

Usage

registry_roclet()

Value

A roclet, to name in the Roxygen field of DESCRIPTION.

Examples

# In the DESCRIPTION of a package made by create_mordew():
# Roxygen: list(markdown = TRUE, roclets = c("collate", "namespace", "rd",
#   "mordew::registry_roclet"))
class(
  registry_roclet()
)
#> [1] "roclet_registry" "roclet"