Module: MCPClient::HttpTransportBase::ToolListing
- Included in:
- MCPClient::HttpTransportBase
- Defined in:
- lib/mcp_client/http_transport_base/tool_listing.rb
Overview
The tool list an HTTP transport keeps, and everything derived from it: its generation counter (which tells a host that a mid-call refresh changed the definitions), the fetch that fills it, the invalidation a list_changed notification triggers, and the Mcp-Param-* headers a tools/call carries (MCP 2026-07-28 "Custom Headers from Tool Parameters") -- including the HeaderMismatch refresh-and-retry.
Instance Method Summary collapse
-
#tools_generation ⇒ Integer
The current tool-list generation (bump on invalidation).
Instance Method Details
#tools_generation ⇒ Integer
Returns the current tool-list generation (bump on invalidation).
181 182 183 |
# File 'lib/mcp_client/http_transport_base/tool_listing.rb', line 181 def tools_generation @tools_generation ||= 0 end |