Interface InitialCheck


public interface InitialCheck
Performs an initial check when an MCP client connection is initialized, i.e. before the server capabilities are sent back to the client. If an initial check fails then the connection is not initialized successfully and the error message is sent back to the client.

Implementations are CDI beans. Multiple checks are sorted by InjectableBean.getPriority() and executed sequentially. Higher priority is executed first.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<InitialCheck.CheckResult>
    perform(InitialRequest initialRequest)
    Use the VertxContextSupport.executeBlocking(java.util.concurrent.Callable) if you need to execute some blocking code in the check.
  • Method Details

    • perform

      io.smallrye.mutiny.Uni<InitialCheck.CheckResult> perform(InitialRequest initialRequest)
      Use the VertxContextSupport.executeBlocking(java.util.concurrent.Callable) if you need to execute some blocking code in the check.
      Parameters:
      initialRequest -
      Returns:
      the check result