Function: openInMemoryMcpServer()
openInMemoryMcpServer<
TState,TEvents>(...__namedParameters):Promise<InMemoryMcpSession>
Opens a real MCP client against the real generated server for one compiled MCP surface, over the SDK's in-memory transport pair.
Compiled MCP Apps are deliberately not registered: their HTML is a browser build output, and claiming an App resource without it would be exactly the fake this level must not become. App surfaces belong to the browser level.
Type Parameters
TState
TState = unknown
TEvents
TEvents extends Readonly<Record<string, ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>>> = Readonly<Record<string, ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>>>
Parameters
__namedParameters
...HarnessOptionsArguments<InMemoryMcpSessionOptions<TState, TEvents>>
Returns
Promise<InMemoryMcpSession>