mirror of
https://github.com/varunneal/spotify-mcp.git
synced 2026-04-26 13:15:50 +03:00
[PR #48] Fix deprecated Spotify Web API endpoints #48
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-mcp-varunneal#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/varunneal/spotify-mcp/pull/48
Author: @maxliving
Created: 2/24/2026
Status: 🔄 Open
Base:
main← Head:fix/spotify-api-deprecated-endpoints📝 Commits (1)
41ebaaaFix deprecated Spotify Web API endpoints📊 Changes
2 files changed (+28 additions, -19 deletions)
View changed files
📝
src/spotify_mcp/spotify_api.py(+19 -15)📝
src/spotify_mcp/utils.py(+9 -4)📄 Description
Summary
Spotify deprecated several playlist-related endpoints in late 2024, replacing
/trackswith/itemsacross the playlist API. This PR updates all affected calls.create_playlist:POST /users/{user_id}/playlists→POST /me/playlistsadd_tracks_to_playlist:POST /playlists/{id}/tracks→POST /playlists/{id}/itemsremove_tracks_from_playlist:DELETE /playlists/{id}/tracks→DELETE /playlists/{id}/itemsget_playlist_tracks: replacedsp.playlist()['tracks']with a direct call toGET /playlists/{id}/itemsparse_playlist/parse_tracks: handle the renamed response key (track→item) in playlist item objects, and gracefully handle the missingtracksobject in create responsesTest plan
Tested end-to-end against the live Spotify API.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.