-
Notifications
You must be signed in to change notification settings - Fork 582
Open
Description
Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.
Expected Behavior
Users can develop their own filters to handle upcoming CallToolRequests
, such as data permissions, function permissions checking.
add constructor param
this.routerFunction = RouterFunctions.route()
.GET(this.sseEndpoint, this::handleSseConnection)
.POST(this.messageEndpoint, this::handleMessage)
.filter(requestFilter)
.build();
by implementing this method
public abstract McpSchema.CallToolResult doFilter(ServerRequest request, McpSchema.CallToolRequest callToolRequest);
Current Behavior
can't add custom filler
Context
if it pass, i can do this
Metadata
Metadata
Assignees
Labels
No labels