Start a cluster of MCP servers from a configuration file or object.
Configuration options
Optional path to custom .mcp.json file
ServerRegistry with servers map, config, connect method, and close function
// Auto-discover .mcp.json in current directoryconst registry = await upCommand(); Copy
// Auto-discover .mcp.json in current directoryconst registry = await upCommand();
// Load from specific configconst registry = await upCommand({ config: '/path/to/.mcp.json' }); Copy
// Load from specific configconst registry = await upCommand({ config: '/path/to/.mcp.json' });
// Use in-memory configconst registry = await upCommand({ mcpServers: { 'echo-stdio': { command: 'node', args: ['test/lib/servers/echo-stdio.ts'] } }}); Copy
// Use in-memory configconst registry = await upCommand({ mcpServers: { 'echo-stdio': { command: 'node', args: ['test/lib/servers/echo-stdio.ts'] } }});
Start a cluster of MCP servers from a configuration file or object.