Your agent reads a project configuration file. Five minutes later, someone edits the deployment target. The agent still has the old value, and the application needs a way to catch the change before the agent acts.

MCP subscriptions provide a notification path for changes to resources and server catalogs. In the 2026-07-28 protocol revision, clients use subscriptions/listen to ask for specific updates. The stream tells the client something changed; it does not silently replace the agent’s context or decide what the agent should do next.

This article targets that revision. Older examples using resources/subscribe target an earlier protocol path. Check the version before borrowing their code. The official MCP changelog documents the replacement. Source: MCP key changes.

The core idea

An MCP resource exposes context through a URI. A client reads its contents with resources/read. A subscription adds a way to hear that the contents have changed, without repeatedly reading the resource just to check.

There are two different questions here:

  • Did the available resource catalog change? Subscribe to resource-list changes.
  • Did the content behind a particular URI change? Subscribe to updates for that URI.

The resource capability advertises these separately as listChanged and subscribe. A server can support one without the other, or expose resources without either. Do not infer live updates from the mere presence of readable resources. Source: MCP resources specification.

How subscriptions work

A client opens subscriptions/listen with a filter naming the notifications it wants. The filter can request tool-list changes, prompt-list changes, resource-list changes, or updates for particular resource URIs.

The server first sends notifications/subscriptions/acknowledged. Its acknowledged filter can be narrower than the request, so the client should inspect what was accepted. Subsequent notifications carry io.modelcontextprotocol/subscriptionId in their metadata, matching the original listen request’s JSON-RPC ID. This also lets clients distinguish subscriptions sharing a stdio channel. Source: MCP subscriptions specification.

For a configuration-watching client, the filter portion could look like this:

{
  "notifications": {
    "resourceSubscriptions": ["file:///project/config.json"]
  }
}

This fragment shows just the filter. A complete request also needs the protocol’s required metadata and a JSON-RPC ID; check your SDK’s request API for that envelope.

When the watched resource changes, notifications/resources/updated identifies its URI. The client can then read it again. The notification is not the new file contents. Your application decides how to bring the refreshed content into the agent’s context. Source: MCP resources specification.

Why it matters for AI agents

Consider a deployment assistant that reads configuration before preparing a release. A useful application policy would be:

  1. Watch the configuration resource.
  2. Mark the local snapshot stale when an update arrives.
  3. Read the resource again before using it in a deployment decision.
  4. If the refreshed configuration differs, show the change and reconsider the proposed action.

The application has to implement those steps. Its interface should tell the user whether it has only received an update or has also refreshed the content and revised the plan.

A resource update cannot authorize a deployment. Apply your usual permission and approval checks before acting on the refreshed content.

What happens when the stream drops?

Do not design subscriptions as an audit trail. The Python SDK documentation explicitly describes its stream as non-replaying: events published while disconnected are not queued. Its recovery guidance is to listen again and refetch. Source: MCP Python SDK subscriptions.

The 2026-07-28 transport changes also remove SSE message redelivery and resumability. A broken response stream is not something to repair by assuming an old event cursor will recover missed notifications. Source: MCP key changes.

In the client, track whether the server acknowledged the watch and whether a resource read succeeded. If the connection drops, or an update arrives after the read, mark the snapshot’s freshness as uncertain. A watch can be active while the client still holds stale content.

After reconnecting, establish a new watch and refresh the relevant snapshot. For actions where a stale value could cause damage, I would also check application-level revisions immediately before writing. Subscriptions alone cannot provide transaction isolation.

Check authorization on the watch itself

Read permissions alone are not enough to assume notification privacy. The Python SDK documentation warns that its default subscription handling does not consult the resource read handler. A caller could learn that a protected resource changed, and when, without receiving its contents. It demonstrates middleware for restricting which URIs a caller may watch. Source: MCP Python SDK subscriptions.

For a multi-tenant service, test the watch path independently from the read path. For a negative test, have one tenant request another tenant’s resource URI, then change that resource. Confirm the unauthorized watcher receives no update.

FAQ

Is subscriptions/listen the same as resources/subscribe?

No. The 2026-07-28 revision replaces resources/subscribe and resources/unsubscribe with subscriptions/listen. Match the implementation to the protocol version your client and server support. Source: MCP key changes.

Does an update include the new resource contents?

No. The resource update identifies a URI. Retrieve the current contents through resources/read when needed. Source: MCP resources specification.

Are progress updates sent through the subscription?

No. Request-scoped progress notifications remain on the response stream of the request they describe. Catalog and resource-change subscriptions serve a different purpose. Source: MCP key changes.

How does a subscription end?

The client can cancel it, the server can end it, or the transport can close. On HTTP, the client closes the SSE stream; on stdio, it sends notifications/cancelled referencing the listen request ID. Reestablish subscriptions after reconnecting. Source: MCP subscriptions specification.