Has anyone managed to get the new Compose Hot Relo...
# compose
w
Has anyone managed to get the new Compose Hot Reload MCP server working with Codex? It seems to work fine with Claude, but on Codex I get an error:
Copy code
⚠ MCP client for `compose-hot-reload` failed to start: MCP startup failed: handshaking with MCP server failed: connection closed: initialize response
My codex configuration (in config.toml) is
Copy code
[mcp_servers.compose-hot-reload]
command = "./gradlew"
args = ["--no-daemon", "--quiet", "--console=plain", "desktopApp:hotMcpServer"]
For reference, the working configuration with Claude is (in .mcp.json):
Copy code
{
  "mcpServers": {
    "compose-hot-reload": {
      "command": "./gradlew",
      "args": [
        "--no-daemon",
        "--quiet",
        "--console=plain",
        "desktopApp:hotMcpServer"
      ]
    }
  }
}
1
Looks like there might be some erroneous stdout output that is causing issues. Using @modelcontextprotocol/inspector shows that this line is in stdout and is (obviously) not a json-rpc object:
Copy code
kotlin-logging: initializing... active logger factory: Slf4jLoggerFactory
I'm guessing claude and the mcp inspector probably handles malformed input more gracefully than codex
Ok, it's fixed by updating kotlin-logging to 8.0.4 which allows you to disable the start-up log line: https://github.com/oshai/kotlin-logging/pull/602