Package io.quarkiverse.mcp.server
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 -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<InitialCheck.CheckResult>perform(InitialRequest initialRequest) Use theVertxContextSupport.executeBlocking(java.util.concurrent.Callable)if you need to execute some blocking code in the check.
-
Method Details
-
perform
Use theVertxContextSupport.executeBlocking(java.util.concurrent.Callable)if you need to execute some blocking code in the check.- Parameters:
initialRequest-- Returns:
- the check result
-