Module: MCPClient::Client::TaskRegistry

Includes:
TaskLifetimes
Included in:
TaskSupport
Defined in:
lib/mcp_client/client/task_registry.rb

Overview

The per-task bookkeeping of the tasks extension: the answered and in-flight input keys, the rounds spent and the pending update of each task, all keyed by the server session they belong to. Task ids are per session and reusable, so every entry dies with its session — and every request that names a task carries the session it is about. Inside one session an id is reusable too: every CreateTaskResult starts a fresh lifetime under it, and a wait, a hold or an answer of one lifetime never reaches another — which lifetime a task id names, and which one a request is bound to, lives in TaskLifetimes. Mixed into MCPClient::Client through TaskSupport.

Constant Summary

Constants included from TaskLifetimes

MCPClient::Client::TaskLifetimes::MAX_TRACKED_TASK_LIFETIMES, MCPClient::Client::TaskLifetimes::TRACKED_TASK_LIFETIMES_LOW_WATER