How to add list of tool filtered based on JWT token?
06:07 09 Jan 2026

I build a MCP Server. It should expose both types of Tools read and write. Authentication is configured. I would like to verify token claims and proceed with allowed list of tools for current user.

I use Spring AI MCP Framework, but as I see there is no way to override this behavior:
See io.modelcontextprotocol.server.McpAsyncServer#prepareRequestHandlers

Could you please advise how to approach to this question?

spring-ai mcp-server