File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11# mcptools (development version)
22
3+ * ` mcp_tools() ` now sends and receives a ` "notifications/initialized" ` (#77 by @galachad ).
34* ` mcp_session() ` now returns invisibly the nanonext socket used for communicating with the server.
45* ` mcp_server() ` gains logical argument ` session_tools ` , allowing users to opt-out of presenting R sessions tools to clients.
56
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ error_no_mcp_config <- function(call) {
195195
196196add_mcp_server <- function (process , name ) {
197197 response_initialize <- send_and_receive(process , mcp_request_initialize())
198+ send_and_receive(process , mcp_request_initialized())
198199 response_tools_list <- send_and_receive(process , mcp_request_tools_list())
199200
200201 the $ mcp_servers [[name ]] <- list (
@@ -419,7 +420,13 @@ mcp_request_initialize <- function() {
419420}
420421
421422# step 2: send initialized notification
422- # This is a MAY in the protocol, so omitting.
423+ mcp_request_initialized <- function () {
424+ list (
425+ jsonrpc = " 2.0" ,
426+ method = " notifications/initialized"
427+ )
428+ }
429+
423430
424431# step 3: request the list of tools
425432mcp_request_tools_list <- function () {
You can’t perform that action at this time.
0 commit comments