Skip to content

Commit 0042ad8

Browse files
committed
Close the four log-delivery divergences the per-request log-level gate resolved
Log message notifications on a 2026-07-28 connection are now gated on the request's io.modelcontextprotocol/logLevel opt-in, so the pins that recorded un-gated delivery (all-levels, message fields, mid-tool-call logging, and the Context logging helpers) no longer diverge from the spec. Drop their Divergence blocks; the tests were already re-pinned with an explicit log level.
1 parent e3f1e4c commit 0042ad8

1 file changed

Lines changed: 0 additions & 31 deletions

File tree

tests/interaction/_requirements.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,14 +1347,6 @@ def __post_init__(self) -> None:
13471347
"Log notifications emitted by a tool handler during execution reach the client's logging "
13481348
"callback before the tool result returns."
13491349
),
1350-
divergence=Divergence(
1351-
note=(
1352-
"At 2026-07-28 the spec forbids notifications/message for a request whose _meta lacks the "
1353-
"io.modelcontextprotocol/logLevel opt-in; the session's send_log_message never reads that "
1354-
"key and the tool handler's mid-call messages are delivered unconditionally, so a bound "
1355-
"test pins the un-gated delivery on the live 2026-07-28 cells."
1356-
),
1357-
),
13581350
),
13591351
"tools:call:progress": Requirement(
13601352
source=f"{SPEC_BASE_URL}/basic/utilities/progress#progress-flow",
@@ -2049,13 +2041,6 @@ def __post_init__(self) -> None:
20492041
"The Context logging helpers (debug/info/warning/error) send log message notifications at the "
20502042
"corresponding severity."
20512043
),
2052-
divergence=Divergence(
2053-
note=(
2054-
"At 2026-07-28 the spec forbids notifications/message for a request whose _meta lacks the "
2055-
"io.modelcontextprotocol/logLevel opt-in; the Context helpers never read that key and emit "
2056-
"unconditionally, so a bound test pins the un-gated delivery on the live 2026-07-28 cells."
2057-
),
2058-
),
20592044
),
20602045
"mcpserver:context:progress": Requirement(
20612046
source="sdk",
@@ -2872,29 +2857,13 @@ def __post_init__(self) -> None:
28722857
"logging:message:all-levels": Requirement(
28732858
source=f"{SPEC_BASE_URL}/server/utilities/logging#log-levels",
28742859
behavior="All eight RFC 5424 severity levels are deliverable as log message notifications.",
2875-
divergence=Divergence(
2876-
note=(
2877-
"At 2026-07-28 the spec forbids notifications/message for a request whose _meta lacks the "
2878-
"io.modelcontextprotocol/logLevel opt-in; the session's send_log_message never reads that "
2879-
"key and all eight severity levels are delivered unconditionally, so a bound test pins the "
2880-
"un-gated delivery on the live 2026-07-28 cells."
2881-
),
2882-
),
28832860
),
28842861
"logging:message:fields": Requirement(
28852862
source=f"{SPEC_BASE_URL}/server/utilities/logging#log-message-notifications",
28862863
behavior=(
28872864
"A log message sent by a server handler is delivered to the client's logging callback with its "
28882865
"severity level, logger name, and data."
28892866
),
2890-
divergence=Divergence(
2891-
note=(
2892-
"At 2026-07-28 the spec forbids notifications/message for a request whose _meta lacks the "
2893-
"io.modelcontextprotocol/logLevel opt-in; the session's send_log_message never reads that "
2894-
"key and the handler's messages are delivered unconditionally, so a bound test pins the "
2895-
"un-gated delivery on the live 2026-07-28 cells."
2896-
),
2897-
),
28982867
),
28992868
"logging:message:filtered": Requirement(
29002869
source=f"{SPEC_BASE_URL}/server/utilities/logging#setting-log-level",

0 commit comments

Comments
 (0)