Integration Guide  ·  연동 가이드

Codex App

ArkComposer as MCP Server · 빠르고 읽기 쉬운 설정 가이드

This guide explains the fastest and most reliable way to connect ArkComposer to the Codex app through MCP.
For most users, the recommended path is HTTP/SSE with http://localhost:9101/sse.
이 페이지는 ArkComposer를 Codex app에 MCP로 가장 빠르고 안정적으로 연결하는 방법을 설명합니다. 대부분의 사용자는 HTTP/SSE 방식 http://localhost:9101/sse를 쓰는 것이 가장 쉽습니다.

01
Start MCP In ArkComposer
ArkComposer에서 MCP 서버 시작
Open ArkComposer normally, then launch the built-in MCP Server from the left palette.

일반 실행 후 왼쪽 팔레트에서 MCP 서버를 시작합니다.
02
Register In Codex App
Codex app에 서버 등록
Open Settings → MCP servers and register the HTTP/SSE URL.

Settings → MCP servers에서 HTTP/SSE URL을 등록합니다.
03
Compose By Chat
대화로 작곡 시작
Describe the music you want. Codex reads the score and edits ArkComposer in real time.

원하는 음악을 말하면 Codex가 악보를 읽고 실시간으로 편집합니다.
01
Start the MCP Server in ArkComposer
ArkComposer에서 MCP 서버 시작

Run ArkComposer normally. In the left palette, click MCP Server, confirm the port values, and press Start.
The built-in dialog exposes two ports: raw TCP JSON-RPC and HTTP/SSE.
ArkComposer를 일반 실행한 뒤 왼쪽 팔레트의 MCP Server를 눌러 포트를 확인하고 Start를 누릅니다. 이 창에는 TCP와 HTTP/SSE 두 가지 포트가 함께 표시됩니다.

ArkComposer MCP Server dialog showing default ports 9100 and 9101
Default values shown in ArkComposer: TCP 9100, HTTP/SSE 9101. These are the values most users should keep.
Recommended
For the Codex app, prefer the HTTP/SSE port.
Default URL: http://localhost:9101/sse
Codex app에서는 HTTP/SSE 포트를 권장합니다. 기본 URL은 http://localhost:9101/sse 입니다.
02
Add ArkComposer in Codex App
Codex app에 ArkComposer 등록

Open the Codex app, then go to Settings → MCP servers.
Create or update the ArkComposer MCP entry and point it to the HTTP/SSE endpoint from ArkComposer.
Codex app에서 Settings → MCP servers로 이동한 뒤, ArkComposer MCP 항목을 만들고 ArkComposer에서 표시된 HTTP/SSE 주소를 등록합니다.

Codex app MCP settings using http://localhost:9101/sse
Recommended Codex app setup: enter http://localhost:9101/sse as the server URL.
Important
If you want to switch between HTTP/SSE and stdio in the Codex app, uninstall the existing ArkComposer MCP entry first, then create the new one.
Codex app에서는 HTTP/SSE와 stdio 타입을 서로 바꾸려면 기존 ArkComposer 항목을 먼저 제거한 뒤 새로 만들어야 합니다.
03
Optional stdio Setup
선택 사항: stdio 방식

If you want the client to launch ArkComposer directly, use stdio instead of HTTP/SSE.
In that case, set the command to ArkComposer.exe and add the argument --mcp-mode.
클라이언트가 ArkComposer를 직접 실행하도록 하려면 HTTP/SSE 대신 stdio를 사용하세요. 이 경우 명령은 ArkComposer.exe, 인자는 --mcp-mode로 설정합니다.

Codex app stdio setup with ArkComposer.exe and --mcp-mode
Stdio alternative: ArkComposer.exe + --mcp-mode
When to use this
Use stdio when you want one-click launch directly from the MCP client.
Use HTTP/SSE when you want the simplest public setup and clear port-based control from ArkComposer itself.
클라이언트에서 ArkComposer를 직접 실행하고 싶다면 stdio, 일반 사용자에게 가장 쉬운 공개 설정은 HTTP/SSE를 권장합니다.
04
Compose by Conversation
대화로 작곡 시작

Once connected, keep the prompt simple and concrete. Ask for song length, mood, style, and the kind of edit you want.
Good prompts are short, direct, and musical.
연결 후에는 프롬프트를 짧고 구체적으로 유지하세요. 길이, 분위기, 스타일, 원하는 편집 내용을 직접 말하면 됩니다.

compose a ballad song with 20 measures.
Codex conversation launching ArkComposer MCP mode and requesting a 20 measure ballad
Connect first, then request the music in plain language.
Codex app composing directly into ArkComposer via MCP
Codex prompt on the left, ArkComposer score updating on the right.
Operational Rule
Codex should inspect the current score before editing it. In practice, that means MCP clients should read the score first and only then compose or modify a target passage.
Codex는 편집 전에 현재 악보를 먼저 읽는 것이 원칙입니다. 실제로는 target passage를 수정하기 전에 score를 먼저 읽어야 합니다.
05
Troubleshooting
문제 해결
Common Cause
The most common cause of MCP problems is a stale client or app process still running in memory.
A full restart is often faster than trying partial recovery steps repeatedly.
가장 흔한 원인은 메모리에 남아 있는 이전 프로세스입니다. 부분 복구를 반복하기보다 완전 재시작이 더 빠른 경우가 많습니다.
Reference Notes
참고 메모
Recommended endpoint for Codex app: http://localhost:9101/sse Alternative stdio launch: ArkComposer.exe --mcp-mode Advanced raw TCP endpoint: localhost:9100
Built-in docs
ArkComposer also exposes its own AI usage docs through MCP resources, including:
arkcomposer://docs/how-to-use-llm
ArkComposer는 MCP 리소스로 AI 사용 가이드를 직접 제공합니다. 예: arkcomposer://docs/how-to-use-llm