Skip to content

Support tools varied by user #160

Closed
Closed
@SamMorrowDrums

Description

@SamMorrowDrums

I am experimenting with dynamically changing the tool offering, and for a local server with one user it works really well but for a remote server with many users we ideally support this.

One option is all tools are enabled, and we filter them with middleware before returning the tools list response. Say for example because they cannot use some due to oauth capabilities of their token.

Tool updates also should have a way to target individual sessions and not be global, otherwise this doesn't work either (we don't want one user changing the global tool state for all)

Another option is a user session so we can set information on the session stored client side so that we can be stateless on the server side, but support dynamic capabilities. This would require spec updates of course.

One way or another I think we need this at GitHub as we have so many tools.

Some more context here: github/github-mcp-server#275

Thanks for taking a look at this, as you know I will be willing to contribute to help if I can be useful. Just wanted to document this desire.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions