Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Pre-submission Checklist

  • I have verified that this discussion would not be more appropriate as an issue in a specific repository
  • I have searched existing discussions to avoid duplicates

Discussion Topic

Will MCP server support showing tools based on user identity/roles to mcp client?
Lets say 2 users(user1 and user2) are connecting to same mcp server . user 1 and user 2 should get different set of tool list . For example - user 1 should get tool1 and tool2 as tool list while user 2 should get tool1 and tool2 as tool list.

You must be logged in to vote

Replies: 2 comments

Comment options

I'm currently also investigating how to solve this issue or if we use the server implementation incorrectly.

My current approach would probably be to fork and and extend the toolsListRequestHandler with a filter with some custom logic that can be provided from the outside.

.map(McpStatelessServerFeatures.AsyncToolSpecification::tool)

My worst idea is it to just intercept the "response" and filter the tools that shouldn't be visible for the user.

You must be logged in to vote
0 replies
Comment options

This is the subject of #578

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.