For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/api/functions/test.openInMemoryMcpServer.md.
  • English
  • 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>