Nothing
jsonrpc_response <- function(id, result = NULL, error = NULL) {
if (!xor(is.null(result), is.null(error))) {
warning("Either `result` or `error` must be provided, but not both.")
}
drop_nulls(list(
jsonrpc = "2.0",
id = id,
result = result,
error = error
))
}
# Create a named list, ensuring that it's a named list, even if empty.
named_list <- function(...) {
res <- list(...)
if (length(res) == 0) {
# A way of creating an empty named list
res <- list(a = 1)[0]
}
res
}
to_json <- function(x, ...) {
jsonlite::toJSON(x, ..., auto_unbox = TRUE)
}
interactive <- NULL
mcptools_server_log <- function() {
Sys.getenv("MCPTOOLS_SERVER_LOG", tempfile(fileext = ".txt"))
}
mcptools_client_log <- function() {
Sys.getenv("MCPTOOLS_CLIENT_LOG", tempfile(fileext = ".txt"))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.