# StdioInput (@salmonui/mcp)

> The StdioInput interface of @salmonui/mcp: The parts of a Node readable stream the transport uses (process.stdin).

Canonical: https://salmonui.dev/docs/reference/mcp/StdioInput

```ts
import type { StdioInput } from '@salmonui/mcp';
```

Entry index: https://salmonui.dev/docs/reference/mcp (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/mcp.md).

## Reference

Kind: interface

```ts
interface StdioInput {
    setEncoding(encoding: 'utf8'): unknown;
    on(event: 'data', listener: (chunk: string) => void): unknown;
    on(event: 'end', listener: () => void): unknown;
    on(event: 'error', listener: (error: unknown) => void): unknown;
}
```

The parts of a Node readable stream the transport uses (`process.stdin`).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `setEncoding` | `setEncoding(encoding: 'utf8'): unknown;` |  |  |
| `on` | `on(event: 'data', listener: (chunk: string) => void): unknown; on(event: 'end', listener: () => void): unknown; on(event: 'error', listener: (error: unknown) => void): unknown;` |  |  |
