Interface McpRequestInterceptor


MCP-side analogue of HTTP RequestInterceptor.
Author:
Mark Allen
  • Method Details

    • interceptRequest

      Intercepts an MCP JSON-RPC request before Soklet dispatches it to framework or application logic.
      Type Parameters:
      T - the invocation result type
      Parameters:
      context - the current request context
      invocation - the invocation callback to continue processing
      Returns:
      the invocation result
      Throws:
      Exception - if interception or downstream handling fails