feat: Support MCP resources/subscribe and notifications/resources/updated
Context
This builds directly on #1803 (resources/read) and #1518 (resources & prompts).
Among the remaining MCP primitives, resource subscriptions are a particularly high-impact missing piece for autonomous agent workflows because they allow MCP servers to notify clients about resource changes without polling.
#1378 suggests that Copilot CLI already has infrastructure for MCP server-push
notifications via notifications/tools/list_changed. The same notification
dispatch path seems like the natural place to add resource update handling.
What's missing
| Protocol message | Direction | Status |
|---|---|---|
resources/subscribe |
client → server | ❌ not sent |
notifications/resources/updated |
server → client | ❌ not handled |
resources/unsubscribe |
client → server | ❌ not sent |
Proposed minimal addition
Once resources/read is supported (#1803), Copilot CLI could add support for
resource subscriptions with a small extension to the MCP client layer:
// When the agent receives or selects a watchable resource URI,
// subscribe if the server supports resource subscriptions.
if (serverCapabilities?.resources?.subscribe && resourceUri) {
await mcpClient.subscribeResource({ uri: resourceUri });
}
// Handle resource update notifications alongside the existing
// tools/list_changed notification handler.
mcpClient.setNotificationHandler('notifications/resources/updated', async (n) => {
const { uri } = n.params;
const { contents } = await mcpClient.readResource({ uri });
// Surface the updated contents to the agent/session context.
agentContext.injectResourceUpdate(uri, contents);
});
This is a straightforward extension: resources/read (#1803) is the only
prerequisite for re-reading the updated resource contents.
Why this matters
Without resource subscriptions, long-running MCP workflows must either poll resources/tools repeatedly or expose extra status-check tools.
With subscriptions, an MCP server can expose a watch resource, notify the client when the resource changes, and let the client re-read the resource only when needed.
Example flow:
- Server exposes a watch resource such as
copilot-review://watch/{id} - Client reads the resource and sees a pending state
- Client subscribes with
resources/subscribe - Server sends
notifications/resources/updatedwhen the state changes - Client re-reads the resource and continues without polling
- Client calls
resources/unsubscribewhen done
Related issues
- #1803 — Support MCP
resources/readprimitive (prerequisite) - #1518 — Support MCP resources and prompts (broader tracking issue)
- #1378 —
notifications/tools/list_changedhandling (existing notification infrastructure)
We'd also like resource subscription support once resources/read lands so long-running workflows can react to changes without polling.
Triage summary
This remains an open capability gap. github/copilot-agent-runtime#12224 added generic resources/read and resources/list RPCs but did not add resources/subscribe or notifications/resources/updated. An external project (husker/a2acast#7) independently re-verified this gap against CLI 1.0.70 on 2026-07-14, and a second requester asked for it here on 2026-07-21 to support reactive long-running workflows.
Recommended approach: build subscription lifecycle and notification delivery on top of the existing resources RPCs, with clear cleanup on unsubscribe/disconnect and graceful degradation for servers that do not advertise resources.subscribe.
Route: developer-needed for scoping subscription lifecycle and notification delivery.
This triage summary was prepared with GitHub Copilot and reviewed before posting.
Thanks for the proposal. This is still open: the CLI supports resources/list and resources/read but doesn't yet send resources/subscribe or handle notifications/resources/updated. We've moved this to the backlog.