Interface McpAdmissionContext
Transport/admission context for MCP request rejection or acceptance.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescription@NonNull Class<? extends McpEndpoint> Provides the resolved MCP endpoint class.Provides the HTTP method for the MCP transport request.Provides the JSON-RPC method name when the request is a parsed MCPPOST.Provides the parsed JSON-RPC request ID for request-style MCP operations.Provides the high-level operation type when the request maps to a known MCP operation.Provides the transport request being evaluated for admission.Provides the requested MCP session ID when one is present on the transport request.
-
Method Details
-
getRequest
Provides the transport request being evaluated for admission.- Returns:
- the current request
-
getHttpMethod
Provides the HTTP method for the MCP transport request.- Returns:
- the transport HTTP method
-
getEndpointClass
@NonNull Class<? extends McpEndpoint> getEndpointClass()Provides the resolved MCP endpoint class.- Returns:
- the target endpoint class
-
getJsonRpcMethod
Provides the JSON-RPC method name when the request is a parsed MCPPOST.- Returns:
- the JSON-RPC method, if available
-
getOperationType
Provides the high-level operation type when the request maps to a known MCP operation.- Returns:
- the MCP operation type, if available
-
getJsonRpcRequestId
Provides the parsed JSON-RPC request ID for request-style MCP operations.- Returns:
- the request ID, if available
-
getSessionId
Provides the requested MCP session ID when one is present on the transport request.- Returns:
- the session ID, if available
-