Skip to content

SNode.C 3.2.0

Latest

Choose a tag to compare

@VolkerChristian VolkerChristian released this 28 Nov 15:18
· 25 commits to master since this release

Highlights

  • MCP now shares a task lifecycle across server-hosted tools and client-hosted legacy sampling and elicitation. Applications can opt into client task hosting and observe task status, progress, cancellation and results.
  • MCP applications can provide sampling and roots handlers, complete legacy URL elicitation, observe progress on reverse requests and use legacy bidirectional ping. Modern requests can opt into request-scoped logging.
  • The dedicated stdio and HTTP/HTTPS showcase executables and typed client tour demonstrate the two supported protocol revisions. The development assistant keeps its original registrations.

Fixes

  • Initialize client task operations and request options consistently, retain task completion ownership across reentrant callbacks, and keep task replies and progress tied to the right request.
  • Keep MCP JSON-RPC output clean when stderr and protocol stdout point to the same non-terminal destination. Console logging is suppressed automatically in that case, and configured file logging continues.
  • Preserve the original operating-system error in configuration diagnostics even when stderr is redirected. The MCP reply/result contract is checked at compile time in the regular test build.

Packaging and installed SDK

  • Adopt Contract X v2 package declarations and OpenWrt recipe registration. Preserve source paths during OpenWrt preparation and supply JSON discovery metadata in the OpenWrt staging step.
  • Build against public nlohmann/json headers, including amalgamated distributions, and use module-local dependency discovery.
  • Restore HTTP runtime paths and the upgrade installation path used by WebSocket libraries. Staged consumer checks cover the installed SDK and MCP runtime dependencies.

Upgrading from 3.1.0

Output streams. Console logs now default to stderr for all SNode.C applications. Configuration errors, warnings and process status also go to stderr, including CLI errors and hints, daemon messages, file-logging announcements, ownership warnings and failed configuration writes. Red error markers appear only when stderr is a terminal. Requested help, version, show-config and command-line output, successful configuration writes and successful daemon-stop confirmations continue to use stdout. Scripts and supervisors that read logs or diagnostics from stdout should capture stderr separately or use 2>&1 to combine streams. Use --log-console stdout to restore stdout for console logs alone. Keep protocol stdout separate from diagnostics when launching MCP stdio from a supervisor. See logging and process options and the upgrade guide.

Library compatibility. The core SNode.C SOVERSION remains 3. The MCP library family moves from SOVERSION 4 to 5. Install the MCP libraries together and rebuild MCP applications and plugins against the 3.2.0 SDK. The HTTP router and server library share an internal response object whose layout changed, so mixed MCP generations are incompatible. The reviewed public MCP wrapper layouts and existing virtual interfaces are preserved.

Known limitations

  • OAuth flows, model providers, consent and filesystem authorization are application responsibilities.
  • Task storage is bounded and process-local. Retained tasks do not survive a server restart and are not shared across processes.
  • Two showcase SDK stdio tests remain disabled because TypeScript SDK 2.4.0 can lose the final stdio progress callback. The native C++ and raw-wire cases still cover both protocol revisions over stdio.