Skip to content

basalt / mcp/src / McpStdioOptions

Interface: McpStdioOptions ​

Defined in: mcp/src/stdio.ts:5

Properties ​

headers? ​

> optional headers?: Record<string, string>

Defined in: mcp/src/stdio.ts:7

Static headers applied to every tool call (e.g. a service tenant/token) — stdio has no per-request headers.


input? ​

> optional input?: ReadableStream

Defined in: mcp/src/stdio.ts:9

Defaults to process.stdin.


maxConcurrentRequests? ​

> optional maxConcurrentRequests?: number

Defined in: mcp/src/stdio.ts:18

Most requests in flight at once on this connection; one more is answered with a SERVER_BUSY (-32000) error. Default 16.


maxLineLength? ​

> optional maxLineLength?: number

Defined in: mcp/src/stdio.ts:13

Longest accepted line, in characters. Default 4 MiB (see @basaltkit/mcp-core).


output? ​

> optional output?: object

Defined in: mcp/src/stdio.ts:11

Defaults to process.stdout.

write() ​

> write(chunk): unknown

Parameters ​
chunk ​

string

Returns ​

unknown

Released under the MIT License.