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
| Tool | Description | Default safety |
|---|---|---|
tunesync_doctor | Validate active profile, config, and credentials | Read-only |
tunesync_lists | List playlists on spotify, ytmusic, or both | Read-only |
tunesync_pairs | List currently linked playlist pairs | Read-only |
tunesync_sync | Run two-way sync across linked pairs (or one pair) | dry_run: true |
tunesync_import_csv | One-way Exportify CSV import into YouTube Music | dry_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 mcpMachine-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_doctorand tell me if my Spotify and YouTube Music credentials are healthy." - "List my linked pairs with
tunesync_pairsand run atunesync_syncdry-run to show what would change." - "Import
~/Downloads/jowi.csvinto YouTube Music in dry-run mode first and summarize any unmatched songs."