Skip to content

Use different logger categories for client and server in McpJsonRpcEndpoint#110

Merged
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
halter73:logger-categories
Mar 27, 2025
Merged

Use different logger categories for client and server in McpJsonRpcEndpoint#110
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
halter73:logger-categories

Conversation

@halter73
Copy link
Copy Markdown
Contributor

Seeing ModelContextProtocol.Server.McpClient logs in the AspNetCoreSseServer sample is weird. This would get even more confusing if the project actually did include the client.

I know we had a discussion about how it's better to take an ILoggerFactory than an ILogger in public APIs, and I still generally think that true. Fortunately, these APIs are not currently public.

Comment thread src/ModelContextProtocol/Shared/McpJsonRpcEndpoint.cs Outdated
@stephentoub stephentoub merged commit 8be6815 into modelcontextprotocol:main Mar 27, 2025
8 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.

2 participants