Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client SDK support for notifications/tools/list_changed? #205

Open
dylburger opened this issue Mar 17, 2025 · 2 comments
Open

Client SDK support for notifications/tools/list_changed? #205

dylburger opened this issue Mar 17, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@dylburger
Copy link

Is your feature request related to a problem? Please describe.

This is more of a question vs. a feature request, so please let me know if I should direct elsewhere.

I've implemented a server that supports the notifications/tools/list_changed notification. But I noticed the TypeScript client SDK doesn't handle that notification natively. Are individual MCP clients expected to set their own notification handler for that message, updating the list of tools for that particular session accordingly?

Describe the solution you'd like

It might be nice for the client SDK to have a helper method like the Java SDK does. I added this in a fork while we work on our server, but didn't want to raise a PR before getting feedback on how you expect the client to handle this situation.

Fantastic project! Looking forward to working with MCP more.

@dylburger dylburger added the enhancement New feature or request label Mar 17, 2025
@pelikhan
Copy link

I'm facing a similar issue. Raising the tools list change notification (and configured the capabilities to listChanged: true) but it does not seem to show up in the server notifications in the inspector.

        {
            capabilities: {
                tools: {
                    listChanged: true,
                },
            },
        }

@johnjjung
Copy link

johnjjung commented Mar 28, 2025

#239

Added typescript implementation 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants