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.openPackedMcpServer.md.
  • English
  • Function: openPackedMcpServer()

    openPackedMcpServer(options): Promise<PackedMcpSession>

    Spawns a built stdio MCP entry and connects a real MCP client to it.

    The entry must already exist: build the artifact once per suite and reuse the session for every assertion. A connect failure reports the captured stderr, because a generated entry that dies on startup says why there and nowhere else.

    Parameters

    options

    PackedMcpSessionOptions

    Returns

    Promise<PackedMcpSession>