ruby-sdk/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
baxter2 a290fe281a Extract MCP::Client pagination loop into fetch_all_pages
`#tools`, `#resources`, `#resource_templates`, and `#prompts` each repeated
the same loop to follow `next_cursor` and collect every page, differing only
in the `list_*` method called and the items field read from each page. Move
that loop into a single private `fetch_all_pages` helper so the four methods
are one-liners and the cursor-cycle guard lives in one place.

Behavior is unchanged; the existing `MCP::Client` list tests cover it.
2026-06-11 17:50:59 +10:00
..
mcp Extract MCP::Client pagination loop into fetch_all_pages 2026-06-11 17:50:59 +10:00
json_rpc_handler.rb Support notifications/cancelled per MCP specification 2026-05-03 04:02:22 +09:00
mcp.rb Support notifications/cancelled per MCP specification 2026-05-03 04:02:22 +09:00