Skip to content

Conversation

@ln-12
Copy link
Contributor

@ln-12 ln-12 commented Sep 4, 2025

During initialization, the default logging level is set to info allowing servers to emit logs immediately without waiting for a client to set a log level.
The updated example shows how to send a notification in the context of the request.

Fixes #387

@ln-12 ln-12 force-pushed the add_default_logging_level branch from 24e7f11 to e53a952 Compare September 4, 2025 13:40
@ln-12 ln-12 changed the title mcp: add DefaultLoggingLevel to ServerOptions mcp: set default logging level to info Sep 4, 2025
During initialization, the default logging level is set to info allowing servers to emit logs immediately without waiting for a client to set a log level.
The updated example shows how to send a notification in the context of the request.

Fixes modelcontextprotocol#387
@ln-12 ln-12 force-pushed the add_default_logging_level branch from e53a952 to 167516a Compare September 4, 2025 13:42
@jba
Copy link
Contributor

jba commented Sep 4, 2025

Thanks!

@jba jba merged commit 4257528 into modelcontextprotocol:main Sep 4, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server notifications are not sent out in stateless mode

2 participants