Connect Taoyuan to Codex CLI
Add [mcp_servers.taoyuan] with url = "https://api.musicsforyou.com/mcp" to ~/.codex/config.toml, then run codex mcp login taoyuan and approve in the browser. From then on a Codex session can write songs and score scenes.
Steps
- Add the TOML below to ~/.codex/config.toml
- Run codex mcp login taoyuan and approve in the browser
- codex mcp list to check status
- Free tools can get approval_mode = "approve" to skip confirmations
Config
Codex requires the OAuth authorization endpoint to share the server's origin; Taoyuan does (api.musicsforyou.com/oauth/authorize).
[mcp_servers.taoyuan]
url = "https://api.musicsforyou.com/mcp"How it works
11 tools: one-call songs, lyrics before you pay, revisions, redo one section, stems, cue-length scoring, plus credits and purchase.
Seeing lyrics is free. One Song ¥19.9 (3 generations); Pro ¥399/year, 30 a month, commercial licence included.
Questions
- Disconnects after login?
- Update to Codex 0.146 or newer; Taoyuan fixed refresh-token rotation and dangling connections in October 2026.
- API key?
- Add http_headers = { Authorization = "Bearer ty_live_..." }.