Commit e304743
committed
fix: widen Context.log level to full LoggingLevel
The MCP spec defines 8 RFC-5424 syslog severity levels (debug, info,
notice, warning, error, critical, alert, emergency). Context.log
previously only accepted 4 of them via a local Literal, even though
ServerSession.send_log_message and LoggingMessageNotificationParams
already accept the full LoggingLevel type.
The debug/info/warning/error convenience methods are unchanged; they
cover the common cases. Callers needing the other levels go through
ctx.log() directly.
Github-Issue: #3971 parent b7d51fd commit e304743
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
197 | | - | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
0 commit comments