For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/zh/api/functions/mcp-entry.runStdioServer.md.
  • 简体中文
  • Function: runStdioServer()

    runStdioServer(__namedParameters): Promise<StdioServerHandle>

    Owns the stdio server lifecycle: SIGINT exits 130, SIGTERM exits 143, stdin EOF and transport close exit 0 promptly (so the client can respawn), and a wedged transport/server close never hangs shutdown — the closes race a bounded timer and the process exits unconditionally once it fires.

    Parameters

    __namedParameters

    RunStdioServerOptions

    Returns

    Promise<StdioServerHandle>