Skip to content

Conversation

@halter73
Copy link
Contributor

Prior to this change, the AspNetCoreSseServer sample listed duplicate tools per call to McpServerFactory.Create with the same options.

duplicate tools listing

  • This follows the best practice to not mutate options outside of IConfigureOptions callbacks and sets the stage for more changes to allow for multiple server connections in a single process.
  • Long-term, we should move the repeated work from SetToolsHandler into an IPostConfigureOptions service or IMcpServerConnectionFactory

- Follow best practice to not mutate options outside of IConfigureOptions
- Long-term, we should move the repeated work from SetToolsHandler into
  an IPostConfigureOptions service or IMcpServerConnectionFactory
@halter73 halter73 requested a review from stephentoub March 27, 2025 01:28
@stephentoub stephentoub merged commit 4a53f6f 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