You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
server-stateless: 500 ms whole-request deadline in no-log-without-loglevel reports slow servers as failures #530
sep-2575-server-no-log-without-loglevel gives listenToStream a 500 ms budget for the whole request (stateless.ts#L947-L952). The AbortController covers connecting, the server's handler, and reading the frames. When the deadline passes, the helper swallows the abort and returns []. The check then reports the FAILURE Logging target endpoint context dropped or failed to yield frame structures, so a slow but correct server looks broken.
Other listenToStream calls in this scenario allow 800 to 1500 ms, and the helper defaults to 1000 ms. The CLI has no option to raise the budget.
What we see. We run conformance server --scenario server-stateless in our local test gate. The target is a Cloudflare Workers dev server reached through a loopback proxy. At a load average of about 60, the proxy timed 58 scenario requests to response headers: median 137 ms, p90 278 ms, max 512 ms. The test_logging_tool call took 105 ms that run. With more CPU contention (several test runs sharing a laptop), that call sometimes takes over 500 ms. The check then fails, and the same server passes on a rerun.
Suggested fix (any of these):
Use the helper's 1000 ms default here, as the neighboring checks do, or
report an aborted request as inconclusive, e.g. untestable, and not as a server failure, or
expose a CLI option such as --timeout <ms> for stream waits.
Version: @modelcontextprotocol/conformance@0.2.0-alpha.11. The same code is on main at 7169291.
We have reproduced a related, but distinct, false negative in the same listenToStream helper, this time in the SEP-2575 list-change subscription probes rather than the logging probe.
Environment:@modelcontextprotocol/conformance@0.2.0-alpha.12, Node 24, a Swift Streamable HTTP server; command:
The prompt-list-changed check emitted a SHOULD warning in three repeated Debug runs; Release passed. We instrumented the server's subscription lifecycle and independently read the exact installed referee bundle. Relative to acknowledgment write completion, the two traced Debug runs show:
Event (ms)
Run 1
Run 2
Mutation starts
12.014
10.976
Subscription removed (transport task cancelled)
1475.665
1478.121
Atomic catalog publication
4532.320
4454.250
Publication targets
0
0
Release published at 485.240 ms, selected one subscriber, and the referee received the actual prompt notification. See the detailed native evidence. The current upstream helper at 96a6f947 still starts its timer before opening the subscription and leaves it running while awaiting the mutation RPC.
We also reproduced this independently with the actual archived alpha.12 helper and a tiny local Node HTTP/SSE server: a 2 s successful mutation, 1500 ms stream window, no subscriber left at publication. An isolated candidate helper with separate bounded opening / mutation / post-mutation observation phases received the real notification with the same 1500 ms observation window. Local Node 22 tests include genuine missing notification, failed/hanging mutation, early closure and cleanup controls (10/10); the full upstream npm build/test and real SDK matrix have not been run yet.
Rather than just raise the stream timeout, would you be open to a focused follow-up that separates the mutation RPC budget from the observation window for the subscription probes, propagates cancellation to the trigger, and explicitly closes the stream in finally? A failed trigger must not turn a negative filter check green. No change to the check IDs or SHOULD/MUST severities. The no-callback logging/streaming probes would retain their current timeout policy in this slice.
Happy to prepare the focused regression-tested PR if this fits the direction of #530, or split the subscription-specific case into a linked issue if preferred.
Activity
ThorFuchs commentedon Nov 24, 2026
We have reproduced a related, but distinct, false negative in the same
listenToStreamhelper, this time in the SEP-2575 list-change subscription probes rather than the logging probe.Environment:
@modelcontextprotocol/conformance@0.2.0-alpha.12, Node 24, a Swift Streamable HTTP server; command:The prompt-list-changed check emitted a SHOULD warning in three repeated Debug runs; Release passed. We instrumented the server's subscription lifecycle and independently read the exact installed referee bundle. Relative to acknowledgment write completion, the two traced Debug runs show:
Release published at 485.240 ms, selected one subscriber, and the referee received the actual prompt notification. See the detailed native evidence. The current upstream helper at 96a6f947 still starts its timer before opening the subscription and leaves it running while awaiting the mutation RPC.
We also reproduced this independently with the actual archived alpha.12 helper and a tiny local Node HTTP/SSE server: a 2 s successful mutation, 1500 ms stream window, no subscriber left at publication. An isolated candidate helper with separate bounded opening / mutation / post-mutation observation phases received the real notification with the same 1500 ms observation window. Local Node 22 tests include genuine missing notification, failed/hanging mutation, early closure and cleanup controls (10/10); the full upstream npm build/test and real SDK matrix have not been run yet.
Rather than just raise the stream timeout, would you be open to a focused follow-up that separates the mutation RPC budget from the observation window for the subscription probes, propagates cancellation to the trigger, and explicitly closes the stream in finally? A failed trigger must not turn a negative filter check green. No change to the check IDs or SHOULD/MUST severities. The no-callback logging/streaming probes would retain their current timeout policy in this slice.
Happy to prepare the focused regression-tested PR if this fits the direction of #530, or split the subscription-specific case into a linked issue if preferred.