Skip to content

Conversation

@andyw8
Copy link
Contributor

@andyw8 andyw8 commented Jul 26, 2025

This better matches the code in /examples and helps illustrate the usage.

README.md Outdated
uri: params[:uri],
mimeType: "text/plain",
text: params[:uri],
text: "Hello from example resource!"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As noted in #47, based on my experience, returning a simple string like "Hello" from resources/read was confusing when I first used resources/read. It would be helpful to have a more illustrative example...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated it have both the message and the URI, which hopefully is clearer.

@koic
Copy link
Member

koic commented Jul 27, 2025

Let's proceed with this. Can you squash your commits into one?

@andyw8 andyw8 force-pushed the andyw8/clarify-resource-read-handler-example-in-readme branch from edebe2d to ffb04e1 Compare July 27, 2025 15:31
@koic koic merged commit 645386e into modelcontextprotocol:main Jul 31, 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.

2 participants