Delegate McpRequestFilter<TParams, TResult>
- Namespace
- ModelContextProtocol.Server
- Assembly
- ModelContextProtocol.Core.dll
Delegate type for applying filters to incoming MCP requests with specific parameter and result types.
public delegate McpRequestHandler<TParams, TResult> McpRequestFilter<TParams, TResult>(McpRequestHandler<TParams, TResult> next)
Parameters
nextMcpRequestHandler<TParams, TResult>The next request handler in the pipeline.
Returns
- McpRequestHandler<TParams, TResult>
The next request handler wrapped with the filter.
Type Parameters
TParamsThe type of the parameters sent with the request.
TResultThe type of the response returned by the handler.