modelcontextprotocol / modelcontextprotocol/typescript-sdk

Support the resources/subscribe method

Open
#558 6 comments 3 reactions 1 assignee View on GitHub

@KKonstantinov is already working on this.

Since Apr 6, 2026.

enhancement needs design P2
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.