Interface: LibreTranslateMcpServerOptions
Defined in: src/mcp/server.ts:8
The connection a transport needs: the instance URL and, when it issues keys, an API key.
Extends
Properties
apiKey?
optionalapiKey?:string
Defined in: src/mcp/config.ts:161
Inherited from
LibreTranslateConnection.apiKey
baseUrl
baseUrl:
string
Defined in: src/mcp/config.ts:160
Inherited from
LibreTranslateConnection.baseUrl
onShutdown?
optionalonShutdown?: () =>void
Defined in: src/mcp/server.ts:18
Called after /shutdown has closed the server — the process exits there.
Returns
void
port
port:
number
Defined in: src/mcp/server.ts:10
Port to listen on, on 127.0.0.1. 0 picks a free one; read it back from url.
shutdownToken?
optionalshutdownToken?:string
Defined in: src/mcp/server.ts:16
Enables POST /shutdown: a request carrying this value in X-LibreTranslate-Shutdown closes the
server (202); any other value gets 403. libretranslate mcp stop uses it, because on Windows a
signal is TerminateProcess and no cleanup would run.