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
If you create a custom session as suggested in the docs, what's the best practice for accessing this? Ideally I need to access custom session values in the server.WithToolFilter, I see I can use server.ClientSessionFromContext(ctx) but this only returns the default session.
Overall I'm looking to filter tools based on the user's scopes obtained from their bearer token, so open to suggestions if there's an efficient way to achieve this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you create a custom session as suggested in the docs, what's the best practice for accessing this? Ideally I need to access custom session values in the server.WithToolFilter, I see I can use server.ClientSessionFromContext(ctx) but this only returns the default session.
Overall I'm looking to filter tools based on the user's scopes obtained from their bearer token, so open to suggestions if there's an efficient way to achieve this.
I'm using NewStreamableHTTPServer.
Beta Was this translation helpful? Give feedback.
All reactions