Opt-in Linux MCP plugin for reading text aloud.
This feature stages a separate read-aloud Codex plugin with a native Rust MCP
server. It does not enable microphone input or conversation mode. The first MCP
surface is intentionally small:
doctorreports whether Kokoro, a custom command, or native fallback is available.read_aloudspeaks text only when the user or agent explicitly asks for it.stopinterrupts playback started by the MCP server.
Add the feature to linux-features/features.json before rebuilding:
{
"enabled": ["read-aloud-mcp"]
}After rebuilding and launching the app, the feature patches the app's bundled
plugin registry so read-aloud is auto-installed like Computer Use. The
launcher also syncs the bundled Read Aloud plugin into Codex's local plugin
cache. The Linux Feature flag is the opt-in that makes the agent-facing tool
available.
If you also want the response-level speaker button and settings UI, enable both features:
{
"enabled": ["read-aloud", "read-aloud-mcp"]
}The MCP feature reuses the same Kokoro defaults as the UI feature:
- Python runtime:
~/.local/share/codex-desktop/read-aloud/kokoro-venv/bin/python - Model:
~/.local/share/kokoro/kokoro-v1.0.onnx - Voices:
~/.local/share/kokoro/voices-v1.0.bin
Install the runtime and model files with:
bash linux-features/read-aloud/install-kokoro-runtime.shor use the Read Aloud settings page download flow when the read-aloud UI
feature is enabled.
The MCP server reads the same overrides as the UI feature:
CODEX_LINUX_READ_ALOUD_COMMANDCODEX_LINUX_READ_ALOUD_KOKORO_RUNNERCODEX_LINUX_READ_ALOUD_KOKORO_PYTHONCODEX_LINUX_READ_ALOUD_KOKORO_MODELCODEX_LINUX_READ_ALOUD_KOKORO_VOICESCODEX_LINUX_READ_ALOUD_KOKORO_VOICECODEX_LINUX_READ_ALOUD_KOKORO_SPEEDCODEX_LINUX_READ_ALOUD_KOKORO_LANGCODEX_LINUX_READ_ALOUD_NATIVE_FALLBACK=0
Native spd-say / espeak-ng fallback is available by default after this
opt-in MCP plugin is enabled, but Kokoro remains preferred. Set
CODEX_LINUX_READ_ALOUD_NATIVE_FALLBACK=0 to disable the machine voice
fallback.
node linux-features/read-aloud-mcp/test.js
cargo check -p codex-read-aloud-linux
cargo test -p codex-read-aloud-linux