Skip to content

Fix McpServerResource registration#411

Merged
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
stephentoub:fixresources
May 14, 2025
Merged

Fix McpServerResource registration#411
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
stephentoub:fixresources

Conversation

@stephentoub
Copy link
Copy Markdown
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
@jeffhandley jeffhandley added the breaking-change This issue or PR introduces a breaking change label Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change This issue or PR introduces a breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants