McpClient.spawnSibling

Launch an MCP server binary that ships *next to this executable* and build a client over its stdin/stdout. Resolves exeName against the running program's own directory (dirName(thisExePath())) — the common case of a host bundling a sibling helper server — then spawns [resolvedPath] ~ extraArgs. On Windows (or whenever the bare resolved path does not exist) a .exe suffix is tried as a fallback. As with spawn, the returned client is NOT yet initialized — call initialize() (or ping()).

class McpClient
static @safe
spawnSibling
(
string exeName
,
string[] extraArgs = null
,
Implementation clientInfo = Implementation("dlang-mcp-client", "0.1.0")
)