Function: serveLibreTranslateMcpStdio()
serveLibreTranslateMcpStdio(
options):Promise<RunningLibreTranslateMcpStdio>
Defined in: src/mcp/stdio.ts:34
Serve the LibreTranslate MCP server over stdio: newline-delimited JSON-RPC on stdin/stdout, the way an MCP client runs a server it launched itself.
stdout carries the protocol; log to stderr only. Resolves once connected; closed settles when
the client closes stdin.
import { serveLibreTranslateMcpStdio } from "@hoyasumii/libretranslate/mcp";
const mcp = await serveLibreTranslateMcpStdio({ baseUrl: "http://localhost:5000" });
await mcp.closed;
Parameters
options
Returns
Promise<RunningLibreTranslateMcpStdio>