Server
-
mcp_server()now supports HTTP transport in addition to stdio. Usetype = "http"to start an HTTP server, with optionalhostandportarguments. For now, the implementation is authless. -
mcp_server()now formats tool results in the same way as ellmer (#78 by @gadenbuie). -
mcp_server()gains logical argumentsession_tools, allowing users to opt-out of presenting R session tools (that make it possible to communicate withmcp_session()s) to clients. -
Several tightenings-up of the implementation:
- JSON-RPC responses now retain an explicit
id = NULLvalue, ensuring parse-error replies conform to the MCP specification. - The implementation now supports the 2025-06-18 protocol version, updated from 2024-11-05.
- JSON-RPC responses now retain an explicit
-
mcp_session()now invisibly returns the nanonext socket used for communicating with the server.
Client
- Notably,
mcp_tools()did not gain an implementation of the HTTP transport. Instead, we now recommend the mcp-remote tool for serving local MCP servers via the HTTP transport in the documentation.