Skip to content

Conversation

stephentoub
Copy link
Contributor

  • Add missing filling of ResourceCollection in McpServerOptionsSetup
  • Remove AIFunctionMcpServerXx.ToString overrides; for resources, it was changing behavior undesirably, and for the others it was duplicate code.
  • Fix notification method used for resource list changes.
  • Fix type in WithResources parameter name.

Fixes #408

- Add missing filling of ResourceCollection in McpServerOptionsSetup
- Remove AIFunctionMcpServerXx.ToString overrides; for resources, it was changing behavior undesirably, and for the others it was duplicate code.
- Fix notification method used for resource list changes.
- Fix type in WithResources parameter name.
@stephentoub stephentoub merged commit 8d4f51d into modelcontextprotocol:main May 14, 2025
7 checks passed
@stephentoub stephentoub deleted the fixresources branch May 14, 2025 13:09
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.

EverythingServer Sample MCP Server Fails to List Resources When Using WithResources...

2 participants