Reads and parses an MCP tool definition from a YAML file.
This is a low-level function used internally by mcptool_load_all
and mcptool_path.
Examples
path <- system.file(
"mcp", "tools", "ravepipeline-mcp_tool_pipeline_list.yaml",
package = "ravepipeline"
)
tool_def <- mcptool_read(path)
# Check tool name and description
tool_def$name
#> [1] "ravepipeline-mcp_tool_pipeline_list"
tool_def$description
#> NULL