Skip to content

AI Agents & MCP ​

tunesync-cli is designed to be driven directly by AI agents via --json flags or its built-in stdio Model Context Protocol (MCP) server.

MCP Server (tunesync mcp) ​

tunesync mcp speaks JSON-RPC 2.0 over stdin/stdout with zero extra dependencies.

Exposed tools ​

ToolDescriptionDefault safety
tunesync_doctorValidate active profile, config, and credentialsRead-only
tunesync_listsList playlists on spotify, ytmusic, or bothRead-only
tunesync_pairsList currently linked playlist pairsRead-only
tunesync_syncRun two-way sync across linked pairs (or one pair)dry_run: true
tunesync_import_csvOne-way Exportify CSV import into YouTube Musicdry_run: true

Client configuration ​

Add tunesync to Claude Desktop, Cursor, Antigravity, or any MCP-compatible host:

json
{
  "mcpServers": {
    "tunesync": {
      "command": "tunesync",
      "args": ["mcp"]
    }
  }
}

If installed in a virtual environment on Windows, point command to .venv\Scripts\tunesync.exe:

json
{
  "mcpServers": {
    "tunesync": {
      "command": "C:\\Users\\your-user\\tunesync-cli\\.venv\\Scripts\\tunesync.exe",
      "args": ["mcp"]
    }
  }
}

Quick smoke test ​

bash
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | tunesync mcp

Machine-readable documentation (/llms.txt) ​

Agents can fetch the complete condensed documentation in a single request at:

  • https://tunesync.bycomplex.dev/llms.txt

Example prompts to give your agent ​

  • "Run tunesync_doctor and tell me if my Spotify and YouTube Music credentials are healthy."
  • "List my linked pairs with tunesync_pairs and run a tunesync_sync dry-run to show what would change."
  • "Import ~/Downloads/jowi.csv into YouTube Music in dry-run mode first and summarize any unmatched songs."