java.lang.Object
dev.tachyonmcp.core.protocol.mcp.v2026_07_28.McpProtocol
All Implemented Interfaces:
Protocol

public final class McpProtocol extends Object implements Protocol
MCP protocol implementation for the modern, per-request 2026-07-28 revision.
  • Field Details

  • Constructor Details

    • McpProtocol

      public McpProtocol()
  • Method Details

    • endpoint

      public String endpoint()
      Description copied from interface: Protocol
      HTTP endpoint path this protocol is served on, e.g. "/mcp".
      Specified by:
      endpoint in interface Protocol
    • familyName

      public String familyName()
      Description copied from interface: Protocol
      Protocol family name, e.g. "mcp".
      Specified by:
      familyName in interface Protocol
    • versionString

      public String versionString()
      Description copied from interface: Protocol
      Server's negotiated version string, e.g. "2025-11-25". Used for version comparison: ISO-date format ensures lexicographic order is chronological.
      Specified by:
      versionString in interface Protocol
    • matches

      public boolean matches(io.netty.handler.codec.http.HttpRequest request)
      Description copied from interface: Protocol
      Returns true when this implementation can handle the given HTTP request. POST requests are matched by endpoint AND MCP-Protocol-Version header compatibility; other methods (GET for SSE, DELETE for session close, OPTIONS) are matched by endpoint only.
      Specified by:
      matches in interface Protocol
    • responseMapper

      public ProtocolResponseMapper responseMapper()
      Description copied from interface: Protocol
      Response mapper for this protocol version.
      Specified by:
      responseMapper in interface Protocol
    • requestMapper

      public ProtocolRequestMapper requestMapper()
      Description copied from interface: Protocol
      Request mapper for this protocol version.
      Specified by:
      requestMapper in interface Protocol
    • supportsSessions

      public boolean supportsSessions()
      2026-07-28 removed protocol-level sessions: every request self-describes via _meta.
      Specified by:
      supportsSessions in interface Protocol