Class MissingRequiredClientCapabilityException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.tachyonmcp.core.server.domain.MissingRequiredClientCapabilityException
All Implemented Interfaces:
Serializable

public final class MissingRequiredClientCapabilityException extends RuntimeException
Thrown by a handler when processing a request requires a client capability the client did not declare in _meta.io.modelcontextprotocol/clientCapabilities. Mirrors InvalidArgumentException: the feature registry that owns the request/response cycle catches this and maps it to a MissingRequiredClientCapabilityError (-32021, MCP 2026-07-28 SEP-2575), rather than the handler encoding the wire error itself.
See Also:
  • Constructor Details

    • MissingRequiredClientCapabilityException

      public MissingRequiredClientCapabilityException(String message, Map<String,Object> requiredCapabilities)
  • Method Details

    • requiredCapabilities

      public Map<String,Object> requiredCapabilities()
      The missing capabilities, keyed by name (e.g. {"sampling": {}}).