Interface McpSessionTransportAdmissionController
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Fresh HTTP admission and authorization for GET delivery and DELETE cleanup
at session-enabled
2025-06-18 and 2025-11-25 endpoints.
Soklet's 2026-07-28 implementation does not use this controller.
Implementations must support concurrent invocation and evaluate current authority on every call, including reauthorization using the original GET request. The accepted identity is freshly owner-verified. GET permission alone does not grant permission to receive updates for any resource URI.
The features provide cooperative cancellation for deadlines, disconnect, reconciliation and shutdown. Progress reporting and task creation are unavailable. Keep callbacks bounded and respond promptly to cancellation; physical execution remains reserved until an uncooperative callback exits.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionadmit(@NonNull McpSessionTransportAdmissionContext sessionTransportAdmissionContext, @NonNull McpInvocationFeatures invocationFeatures) Evaluates current HTTP authority and returns a bounded authorization expiry or a safe HTTP rejection.
-
Method Details
-
admit
@NonNull McpSessionTransportAdmissionDecision admit(@NonNull McpSessionTransportAdmissionContext sessionTransportAdmissionContext, @NonNull McpInvocationFeatures invocationFeatures) throws Exception Evaluates current HTTP authority and returns a bounded authorization expiry or a safe HTTP rejection.- Parameters:
sessionTransportAdmissionContext- immutable HTTP operation contextinvocationFeatures- features for this bounded callback- Returns:
- accepted identity, expiry and selected families, or a rejection
- Throws:
Exception- if application admission fails
-