MCP Ruby - How to define the content of a Resource

3 days ago 5
ARTICLE AD BOX

I'm trying to build a POC MCP server using the mcp Ruby gem. I have created a couple of tools, and now I need to add the first resource to give access to my posts, but I'm having a hard time figuring out how to return my collection of posts.

How can I define my resources? I was expecting a method like the one in fast-mcp, but I can't find anything in the README or the source code.

I can't switch to fast-mcp because it does not support streamable.

Read Entire Article