@mcp-z/cli
    Preparing search index...

    Function upCommand

    • Start a cluster of MCP servers from a configuration file or object.

      Parameters

      • opts: UpOptions = {}

        Configuration options

        • config

          Optional path to custom .mcp.json file

      Returns Promise<ServerRegistry>

      ServerRegistry with servers map, config, connect method, and close function

      // Auto-discover .mcp.json in current directory
      const registry = await upCommand();
      // Load from specific config
      const registry = await upCommand({ config: '/path/to/.mcp.json' });
      // Use in-memory config
      const registry = await upCommand({
      mcpServers: {
      'echo-stdio': { command: 'node', args: ['test/lib/servers/echo-stdio.ts'] }
      }
      });