Class McpDispatcher

java.lang.Object
dev.tachyonmcp.core.server.McpDispatcher

@InternalApi public class McpDispatcher extends Object
Orchestrates the MCP server's per-request flow: parses JSON-RPC messages, establishes the session on initialize, routes to registered handlers (including extension methods), tracks pending requests, and encodes responses. Collaborator of DefaultTachyonServer — server holds state/registries, this drives one request at a time.

MCP- and spec-version-specific: it special-cases initialize/task-status and binds the v2025_11_25 models/codecs. The version-specific call-sites (marked below) move behind an McpDialect when a second spec version is wired.