Skip to content
Developer Preview

MuseClientSpawnOptions

What MuseClient.spawn needs: ’s { museBin, args?, env? }, plus the handshake.

Property Type Stability Presence Description
args readonly string[] optional
capabilities ClientCapabilities optional Capability posture; absent means all defaults.
clientInfo ClientInfo required Client identification, forwarded verbatim into initialize.
cwd string optional
env ProcessEnv optional REPLACES the child’s environment (PATH included) — spread process.env to extend it.
museBin string required
onStderr (chunk: string) => void optional Raw stderr chunks, drained from process birth and never parsed.
shutdownTimeoutMs number optional See MuseServeChildOptions.shutdownTimeoutMs.
Source

clients/sdk-ts/src/facade/client.ts:127

{
"kind": "Interface",
"canonicalPath": "MuseClientSpawnOptions"
}