Skip to main content

Module binding_cache

Module binding_cache 

Source
Expand description

Owner-isolated live MCP bindings with caller-owned, single-flight refresh.

This is a trusted-host cache, not an execution or credential grant. The connector must launch from the supplied immutable environment and credential revision, not re-read ambient state. Dropping that connector future must cancel its partially established transport. No refresh task is detached.

Structs§

ConnectedMcpServer
Host connector output after successful, complete tool discovery. The cache checks server identity, completeness and every compiled descriptor.
McpBinding
One owned live connection. Retain this lease for the entire tool call.
McpBindingCache
Shared across runs, but never across distinct owner/config/auth/env keys.
McpBindingEnvironment
Exact host-selected environment, including inherited variables and cwd.
McpBindingKey
Exact reuse identity. Private fields prevent omission of owner or revisions.
McpBindingRequest
One immutable connection request, created after host policy projection.
McpBindingTicket
Generation pinned during host preflight. Old steps cannot revive a revoked binding by looking up the same key after invalidation.

Enums§

McpBindingError
Secret-free cache outcome, shared by all callers of one connection attempt.