mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
All three stdio MCP servers (bin/cli.js, bin/mcp-server.js, MCPServerManager) answered initialize with a hardcoded 2024-11-05 and knew nothing of the 2026-07-28 revision. They are now dual-era through one shared module, src/mcp-protocol.ts: - initialize echoes a supported legacy version (else 2025-11-25) and reports the real package version - server/discover answered with or without _meta (stdio probe) - per-request _meta version: -32022 for unknown, -32602 when a modern request lacks clientCapabilities - modern results carry resultType and serverInfo; list results carry ttlMs/cacheScope; legacy responses are unchanged - tools/list sorted by name in both eras (stable prompt caches) - resources/read uses -32602 for modern, -32002 for legacy - validated W3C traceparent/tracestate forwarded into the tool-call context Tasks extension, subscriptions/listen and the HTTP package are Phase 2. Co-Authored-By: RuFlo <ruv@ruv.net>