basalt / mcp-core/src / ServeStdioOptions
Interface: ServeStdioOptions
Defined in: mcp-core/src/stdio.ts:17
Properties
headers?
> optional headers?: Record<string, string>
Defined in: mcp-core/src/stdio.ts:19
Static headers applied to every tool call — stdio has no per-request headers.
input?
> optional input?: ReadableStream
Defined in: mcp-core/src/stdio.ts:21
Defaults to process.stdin.
maxConcurrentRequests?
> optional maxConcurrentRequests?: number
Defined in: mcp-core/src/stdio.ts:38
Most requests (messages with an id) this connection may have in flight at once. One more is answered immediately with a SERVER_BUSY (-32000) JSON-RPC error instead of starting — the stream is a single client, but nothing else bounds how many tool calls it can pile up. Notifications (e.g. notifications/cancelled) are never counted nor refused. Default DEFAULT_MAX_CONCURRENT_REQUESTS (16).
maxLineLength?
> optional maxLineLength?: number
Defined in: mcp-core/src/stdio.ts:29
Longest accepted line (one JSON-RPC message), in characters. A longer line is discarded up to its newline — never buffered whole — and answered with an INVALID_REQUEST error. Default DEFAULT_MAX_LINE_LENGTH (4 MiB).
output?
> optional output?: object
Defined in: mcp-core/src/stdio.ts:23
Defaults to process.stdout.
write()
> write(chunk): unknown
Parameters
chunk
string
Returns
unknown