modelcontextprotocol / modelcontextprotocol/typescript-sdk
Support the resources/subscribe method
@KKonstantinov is already working on this.
Since Apr 6, 2026.
- Dominant language
- TypeScript
- Stars
- 13.4k
- Forks
- 2.2k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 4
Description
Is your feature request related to a problem? Please describe.
I would like to notify clients of updates to resources to which they've subscribed. Currently it appears the SDK does not handle the resources/subscribe request method.
Describe the solution you'd like
I would like the SDK to handle this method.
Describe alternatives you've considered
Right now I can call sendResourceUpdated which is defined as:
async sendResourceUpdated(params) {
return this.notification({
method: "notifications/resources/updated",
params,
});
}
It doesn't determine whether the client has subscribed to the particular resource or not. I would prefer that the SDK not send the notification to clients which have not subscribed.
Another alternative is to step outside the SDK 🤷♂️
Additional context
I'm unaware of popular clients (other than the inspector) which support subscriptions, but they will exist eventually.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.