Class McpInputResponses

java.lang.Object
com.soklet.McpInputResponses

@ThreadSafe public final class McpInputResponses extends Object
Immutable input responses supplied with an MCP multi-round-trip retry or task update.

Raw lookup preserves the exact MCP JSON value. Typed lookup uses Soklet's closed intrinsic MCP binding and is provided both to live request contexts and to application-created test fixtures.

For ordinary multi-round request retries, Soklet validates that each wire value belongs to the open MCP InputResponse union. A task update is different: the task manager must first correlate each key with the task's outstanding requests, then ignore unknown, consumed, superseded, or union-mismatched values. Its input-response collection can therefore contain an arbitrary bounded MCP JSON value under a key that the manager must ignore.

Applications must still branch explicitly on elicitation accept, decline, and cancel actions, and validate accepted form content against the exact requested schema before causing a side effect. Typed lookup converts a value; it does not establish that request-specific correlation or policy.

Author:
Mark Allen