Interface: ContractMatrixOptions
Session options; context holds the request-scoped overrides applied to
every route render in this session; omitting it (or its providers) mounts
the project's conventional providers exactly as the generated server does
(see RenderRouteContextInit).
Extends
Properties
apps?
readonlyoptionalapps?:ContractAppCoverage
Accepted for parity with the other entry points; apps are never registered here.
context?
readonlyoptionalcontext?:RenderRouteContext
Inherited from
InMemoryMcpSessionOptions.context
fixtures
readonlyfixtures:Readonly<Record<string,ContractRouteFixture>>
Route id -> fixture. Every compiled tool, prompt, and resource route on
the server must be covered. App routes are not registered at
mcp-in-memory; entries for them are accepted and ignored.
lineage?
readonlyoptionallineage?:AgentLineageRegistry
A lineage registry the generated server resolves tool calls through,
exactly as the artifact does; omitted sessions observe request.lineage
as unavailable('not-provided').
Inherited from
InMemoryMcpSessionOptions.lineage
lineageHost?
readonlyoptionallineageHost?:LineageHost
The host vocabulary the registry applies when the in-memory client name maps to none.
Inherited from
InMemoryMcpSessionOptions.lineageHost
manifest?
readonlyoptionalmanifest?:AgentBundleTestManifest
Overrides
InMemoryMcpSessionOptions.manifest
restart?
readonlyoptionalrestart?: () =>Promise<ContractMatrixRestartSession>
Reopens the same durable store after the matrix closes its initial in-memory session.
Returns
Promise<ContractMatrixRestartSession>
server?
readonlyoptionalserver?:string
MCP server name. Optional when the project compiled exactly one server.
Overrides
InMemoryMcpSessionOptions.server
state?
readonlyoptionalstate?:object
Optional state owner input for parity with a generated Flight worker.
definition
readonlydefinition:AgentStateDefinition<unknown,Readonly<Record<string,ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>>>>
driver
readonlydriver:AgentStateDriver
Inherited from
InMemoryMcpSessionOptions.state