No free generations. Log in to buy One Song for ¥19.9 or start a Pro year for ¥399.Login / Sign Up

    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

    1. Add the TOML below to ~/.codex/config.toml
    2. Run codex mcp login taoyuan and approve in the browser
    3. codex mcp list to check status
    4. 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_..." }.

    Related