MuseClientSpawnOptions
What MuseClient.spawn needs: ’s { museBin?, args?, env? }, plus the handshake.
Properties
Section titled “Properties”| Property | Type | Stability | Presence | Description |
|---|---|---|---|---|
args |
readonly string[] |
optional | ||
capabilities |
ClientCapabilities |
optional | Capability posture; absent means all defaults. spawn adds sessionMcp to requestedCapabilities (keeping yours) so per-session MCP servers can be granted (ADR 32760 D3). |
|
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 |
optional | The host binary. Omitted means the first executable muse on the process’s PATH; with neither, spawn rejects with MuseHostDiscoveryError before starting anything. |
|
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:260
{ "kind": "Interface", "canonicalPath": "MuseClientSpawnOptions"}