mcp-resource-subscribe-test
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-resource-subscribe-testMonitor test://review/status for changes."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-resource-subscribe-test
Minimal MCP Streamable HTTP server for testing whether MCP clients correctly handle resources/subscribe and notifications/resources/updated.
This repository is meant to be a reproducible issue / compatibility lab for CLI AI agents such as Codex CLI, Gemini CLI, OpenCode, GitHub Copilot CLI, Claude Code, Goose, and Crush.
Purpose
The server exposes one fixed MCP resource:
test://review/statusInitial content:
status: pending
version: 1
message: Waiting for simulated review result.After a client subscribes to the resource, the server waits for MCP_TEST_UPDATE_DELAY_SECONDS, changes the resource, and sends:
{
"method": "notifications/resources/updated",
"params": {
"uri": "test://review/status"
}
}Updated content:
status: reviewed
version: 2
message: Simulated review result is now available.Why Resources/Subscribe Instead Of Tools/Call
tools/call is useful for explicit actions, but many agent workflows depend on context that changes after the original request. Polling every source is noisy and client-specific. MCP resource subscriptions give clients a protocol-level way to learn that a known context object changed and should be re-read.
Examples where subscription behavior matters:
Copilot review result
PR review thread
CI status
Codecov comment
GitHub issue discussion
local build/test result
This test server focuses on whether the client notices a resource update, re-runs resources/read, and reflects the new content in the agent loop / model context.
Start
docker compose up --buildMCP URL:
http://127.0.0.1:8089/mcpFor local development:
npm install
npm run devConfiguration
Environment variable | Default |
|
|
|
|
|
|
|
|
|
|
|
|
If MCP_TEST_SEND_LIST_CHANGED=true, the server also sends notifications/resources/list_changed after the simulated update.
Expected Client Behavior
An ideal MCP client should follow this flow:
initialize
↓
resources/list
↓
resources/read test://review/status
↓
resources/subscribe test://review/status
↓
receive notifications/resources/updated
↓
resources/read test://review/status again
↓
reflect updated status: reviewed in agent contextServer Capabilities
The initialize response advertises:
{
"resources": {
"subscribe": true,
"listChanged": true
}
}Implemented MCP Messages
initializeresources/listresources/readresources/subscriberesources/unsubscribenotifications/resources/updatednotifications/resources/list_changedwhenMCP_TEST_SEND_LIST_CHANGED=true
No tools are implemented.
Logs
The server logs each important message so client behavior can be checked objectively:
[initialize] client connected
[resources/list] requested
[resources/read] uri=test://review/status version=1
[resources/subscribe] uri=test://review/status
[resource/update] uri=test://review/status version=2
[notification/send] notifications/resources/updated uri=test://review/status
[resources/read] uri=test://review/status version=2
[resources/unsubscribe] uri=test://review/statusThe key evidence for resource subscription support is:
resources/subscribe was received
notification was sent
resources/read was received again after the notificationTests
npm testThe test suite verifies:
resources/listreturnstest://review/statusinitial
resources/readreturns version 1resources/subscribetriggers an internal update to version 2notifications/resources/updatedis receivedupdated
resources/readreturns version 2
Client Compatibility Notes
Codex CLI
MCP connection:
Does it call
resources/list?Does it call
resources/read?Does it call
resources/subscribe?Does it receive
notifications/resources/updated?Does it re-read the resource after update?
Notes:
Gemini CLI
MCP connection:
Does it call
resources/list?Does it call
resources/read?Does it call
resources/subscribe?Does it receive
notifications/resources/updated?Does it re-read the resource after update?
Notes:
OpenCode
MCP connection:
Does it call
resources/list?Does it call
resources/read?Does it call
resources/subscribe?Does it receive
notifications/resources/updated?Does it re-read the resource after update?
Notes:
GitHub Copilot CLI
MCP connection:
Does it call
resources/list?Does it call
resources/read?Does it call
resources/subscribe?Does it receive
notifications/resources/updated?Does it re-read the resource after update?
Notes:
Claude Code
MCP connection:
Does it call
resources/list?Does it call
resources/read?Does it call
resources/subscribe?Does it receive
notifications/resources/updated?Does it re-read the resource after update?
Notes:
Goose
MCP connection:
Does it call
resources/list?Does it call
resources/read?Does it call
resources/subscribe?Does it receive
notifications/resources/updated?Does it re-read the resource after update?
Notes:
Crush
MCP connection:
Does it call
resources/list?Does it call
resources/read?Does it call
resources/subscribe?Does it receive
notifications/resources/updated?Does it re-read the resource after update?
Notes:
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/scottlz0310/mcp-resource-subscribe-test'
If you have feedback or need assistance with the MCP directory API, please join our Discord server