Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mcptools (development version)

* `mcp_session()` now (invisibly) returns the nanonext socket used for communicating with the server.
* `mcp_session()` now returns invisibly the nanonext socket used for communicating with the server.
* `mcp_server()` gains logical argument `session_tools`, allowing users to opt-out of presenting R sessions tools to clients.

# mcptools 0.1.1
Expand Down
5 changes: 3 additions & 2 deletions R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@
#' * `mcp_server()` blocks the R process it's called in indefinitely and isn't
#' intended for interactive use.
#' * `mcp_session()` makes the interactive R session it's called in available to
#' MCP servers. It returns the \pkg{nanonext} socket used for communicating
#' with the server. Call [close()] on the socket to stop the session.
#' MCP servers. It returns invisibly the \pkg{nanonext} socket used for
#' communicating with the server. Call [close()] on the socket to stop the
#' session.
#'
#' @seealso
#' - The "R as an MCP server" vignette at
Expand Down
2 changes: 1 addition & 1 deletion R/session.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mcp_session <- function() {
the$session <- i
schedule_handle_message_from_server()

the$session_socket
invisible(the$session_socket)
}

handle_message_from_server <- function(data) {
Expand Down
5 changes: 3 additions & 2 deletions man/server.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading