You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support filtering tools depends on request data (http-headers, etc) #608
There is no way to filter tools dynamically. The only way to do it - inherit McpAsyncServer, and use same package io.modelcontextprotocol.server - because McpServerFeatures.Async used in constructor is package-private. So maybe also make McpServerFeatures.Async public?
Context
I would like to implement authorization to be able to restrict tool calls to specific clients.
Activity
bcersows commentedon Oct 10, 2025
Did you have any progress on implementing this yourself? I'm also striving for the same aim.
yellowdog01 commentedon Nov 8, 2025
I think this is a relatively important feature, but currently the SDK does not support it.
chemicL commentedon Feb 20, 2026
Let's tackle this in #578 if that is ok for you.
ResourceRepository,ToolsRepository, ... ) #578