Interface McpAdmissionController
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Thread-safe authentication, authorization, and admission controller for MCP
requests and notifications. Soklet may invoke one controller instance
concurrently for independent messages.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull McpAdmissionControllerReturns the shared controller that accepts every request or notification as anonymous.admit(@NonNull McpAdmissionContext admissionContext) Makes the admission decision for one structurally valid request or notification.
-
Method Details
-
admit
Makes the admission decision for one structurally valid request or notification.- Parameters:
admissionContext- bounded pre-handler admission context- Returns:
- a non-null accepted or rejected decision
- Throws:
Exception- if application admission logic fails; Soklet fails closed
-
acceptAllInstance
Returns the shared controller that accepts every request or notification as anonymous.- Returns:
- shared accept-all controller
-