Skip to content

Commit cebba5d

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 51aaf7c commit cebba5d

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",
@@ -2050,13 +2042,6 @@ def __post_init__(self) -> None:
20502042
"The Context logging helpers (debug/info/warning/error) send log message notifications at the "
20512043
"corresponding severity."
20522044
),
2053-
divergence=Divergence(
2054-
note=(
2055-
"At 2026-07-28 the spec forbids notifications/message for a request whose _meta lacks the "
2056-
"io.modelcontextprotocol/logLevel opt-in; the Context helpers never read that key and emit "
2057-
"unconditionally, so a bound test pins the un-gated delivery on the live 2026-07-28 cells."
2058-
),
2059-
),
20602045
),
20612046
"mcpserver:context:progress": Requirement(
20622047
source="sdk",
@@ -2880,29 +2865,13 @@ def __post_init__(self) -> None:
28802865
"logging:message:all-levels": Requirement(
28812866
source=f"{SPEC_BASE_URL}/server/utilities/logging#log-levels",
28822867
behavior="All eight RFC 5424 severity levels are deliverable as log message notifications.",
2883-
divergence=Divergence(
2884-
note=(
2885-
"At 2026-07-28 the spec forbids notifications/message for a request whose _meta lacks the "
2886-
"io.modelcontextprotocol/logLevel opt-in; the session's send_log_message never reads that "
2887-
"key and all eight severity levels are delivered unconditionally, so a bound test pins the "
2888-
"un-gated delivery on the live 2026-07-28 cells."
2889-
),
2890-
),
28912868
),
28922869
"logging:message:fields": Requirement(
28932870
source=f"{SPEC_BASE_URL}/server/utilities/logging#log-message-notifications",
28942871
behavior=(
28952872
"A log message sent by a server handler is delivered to the client's logging callback with its "
28962873
"severity level, logger name, and data."
28972874
),
2898-
divergence=Divergence(
2899-
note=(
2900-
"At 2026-07-28 the spec forbids notifications/message for a request whose _meta lacks the "
2901-
"io.modelcontextprotocol/logLevel opt-in; the session's send_log_message never reads that "
2902-
"key and the handler's messages are delivered unconditionally, so a bound test pins the "
2903-
"un-gated delivery on the live 2026-07-28 cells."
2904-
),
2905-
),
29062875
),
29072876
"logging:message:filtered": Requirement(
29082877
source=f"{SPEC_BASE_URL}/server/utilities/logging#setting-log-level",

0 commit comments

Comments
 (0)