# serveStdio (@salmonui/mcp)

> The serveStdio function of @salmonui/mcp: Serves server on the streams until the input ends; resolves after the last response is flushed.

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

```ts
import { serveStdio } 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: function

```ts
function serveStdio(server: McpServer, { input, output }: StdioStreams): Promise<void>;
```

Serves `server` on the streams until the input ends; resolves after the last response is flushed.
