DeepSeek Harness Plugin: dsh-ace-music

Introduction

DeepSeek Harness’s (DSH) plugin mechanism allows developers to extend the capabilities of agents, but existing MCP client plugins often lack an OAuth login step—when calling services that require authentication, users either need to manage tokens manually or cannot complete the entire flow within a conversation. ACE Music is an AI song generation service that requires login, and there is no off-the-shelf tool that can be called directly within DSH.

dsh-ace-music is an ACE Music MCP server plugin for DeepSeek Harness. It bridges ACE Music’s capabilities into DSH, so that after completing an OAuth login once, you can generate songs, continue melodies, upload audio, and view or download your work—all within a conversation. It also provides a MusicXML-to-ACE ABC converter, enabling agents to write melodies in a clearer notation format.

Plugin Positioning

dsh-ace-music is maintained by Gladess1102 and falls under the “Web Tools” category. Its core purpose is to fill the gap in DeepSeek Harness when calling music generation services that require OAuth authentication, allowing agents to complete the full workflow from songwriting to audio download without leaving the conversation.

The plugin performs OAuth login as the current DSH process user. It does not hold its own account nor create accounts. Free accounts can generate songs but cannot download audio or use them for commercial purposes. Before installing, check the source code and license. The license is MIT.

Core Features

The plugin provides 10 remote tools and 6 local tools, all prefixed with acemusic_:

Remote tools:
- acemusic_create_song: Input style, lyrics, and title to generate a song. In ACE Music v1.1 preview, optional ABC or MIDI score is available.
- acemusic_continue_score: Continue generating a melody from an ABC or MIDI score (v1.1).
- acemusic_upload_audio: Upload a recording or demo to the library for transcription use.
- acemusic_get_skill: Retrieve writing guides provided by ACE Music, including cover, lyrics, mashup, and score-format.
- acemusic_get_song: Query song status (writing → rendering → ready/failed), title, style, lyrics, and page link.
- acemusic_list_songs: Paginated list of your songs and uploaded works, sorted by time in descending order.
- acemusic_download_song: Download song audio (MP3/WAV/MIDI), available only on paid plans.
- acemusic_show_songs: Display a song playback card (meaningful in Claude/ChatGPT; plain text in DSH).
- acemusic_show_upgrade: Display an upgrade card (plain text in DSH).
- acemusic_get_account: Return plan info, remaining credits, replenishment time, upload duration, and available models.

Local tools:
- acemusic_login: Start the OAuth flow, open the browser authorization page, and wait in the background.
- acemusic_status: Check login status and real-time account information.
- acemusic_logout: Delete the stored token.
- acemusic_tools: Re-fetch the remote tool list and register them (idempotent).
- acemusic_call: Call any remote tool by name and JSON parameters.
- acemusic_score: Convert MusicXML to ACE’s ABC format for use with create_song’s score.abc.

Installation & Enablement

The plugin can be installed via npm or GitHub:

# from npm
dsh plugin --profile <your-profile> add dsh-ace-music

# or straight from GitHub
dsh plugin --profile <your-profile> add github:Gladess1102/dsh-ace-music

After installation, go to “Plugins” → “Add plugin” in DSH and point to the installed package, or restart DSH. Upon plugin load, cordis.patch.yml is activated to enable tool registration.

Typical Usage

1. Log in to ACE Music

First, log in:

acemusic_login

The browser will open acemusic.ai and display “Connect DeepSeek Harness (ACE Music plugin) to ACE Music”. Click “Allow”. The token is saved to ~/.dsh/ace-music/credentials.json (permissions 0600). After that, all acemusic_* tools become available.

Check status:

acemusic_status

The output displays plan, remaining credits, replenishment time, and upload duration.

2. Generate a Song

Use acemusic_create_song to generate a song:

acemusic_create_song --style "warm indie folk with acoustic guitar and a touch of nostalgia" --lyrics "Verse 1\nThe road goes on\nTo where the light is dim\n\nChorus\nWe'll find our way\nThrough the wind and rain"

In ACE Music v1.1 preview, you can also specify a score simultaneously:

acemusic_create_song --style "upbeat pop" --score.abc "V: Vocal\nL:1/16\nM:4/4\nK:C\nC2 G2 A2 B2\nC4 G2 F2"

3. Continue a Melody

Continue generating from an existing ABC or MIDI score:

acemusic_continue_score --score.abc "V: Vocal\nL:1/16\nM:4/4\nK:C\nC2 G2 A2 B2\nC4 G2 F2\n"

4. View & Download

List songs:

acemusic_list_songs

Check the status of a specific song:

acemusic_get_song --song-id "xxx"

Download audio (paid plan):

acemusic_download_song --song-id "xxx" --format mp3

5. Using MusicXML

In an agent, you can write scores in MusicXML and then convert them to ABC via acemusic_score:

<?xml version="1.0" encoding="UTF-8"?>
<score-partwise version="4.0">
  <part-list>
    <score-part id="P1">
      <part-name>Vocal</part-name>
    </score-part>
  </part-list>
  <part id="P1">
    <measure number="1">
      <attributes>
        <divisions>2</divisions>
        <key><fifths>0</fifths></key>
        <time><beats>4</beats><beat-type>4</beat-type></time>
      </attributes>
      <note>
        <pitch><step>C</step><octave>4</octave></pitch>
        <duration>2</duration>
      </note>
      <note>
        <pitch><step>G</step><octave>4</octave></pitch>
        <duration>2</duration>
      </note>
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>2</duration>
      </note>
      <note>
        <pitch><step>B</step><octave>4</octave></pitch>
        <duration>2</duration>
      </note>
    </measure>
  </part>
</score-partwise>

After conversion, you get ABC format, which is then passed to the score.abc parameter of acemusic_create_song.

Use Cases & Notes

Developers suited for this plugin:
- Agents that need to call ACE Music within DSH to generate songs.
- Developers who want to use MusicXML as their score writing format.
- Workflows that require uploading audio and continuing melody generation.

Notes:
- The plugin logs in as the current DSH process user; the token is stored locally.
- Audio download and commercial use require a paid plan.
- The MusicXML converter only supports two parts, and score section markers must strictly correspond to the [section] tags in the lyrics.

Summary

dsh-ace-music integrates ACE Music’s capabilities into DeepSeek Harness, filling the gap in OAuth authentication. It supports generating songs from lyrics, continuing melodies from scores, uploading audio, viewing and downloading works, and provides a MusicXML-to-ABC converter, enabling agents to write melodies in a more structured way. If you need to interact with ACE Music within DSH, this plugin provides a complete toolset.

Plugin Directory Page | GitHub Repository

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye