[PR #40] Add user music preference endpoints and fix scope configuration #42

Open
opened 2026-02-28 15:42:57 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/varunneal/spotify-mcp/pull/40
Author: @bbrewington
Created: 8/29/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (2)

  • 7fbc56f add endpoints to get user's played/followed/top/saved
  • 9229d76 define "scope" from global var SCOPES

📊 Changes

2 files changed (+226 additions, -1 deletions)

View changed files

📝 src/spotify_mcp/server.py (+91 -0)
📝 src/spotify_mcp/spotify_api.py (+135 -1)

📄 Description

Changes Made

  1. Added the following tool execution requests in server.py:

    • RecentlyPlayed: Get recently played tracks with timestamps and play context
    • FollowedArtists: Get artists that the user follows
    • TopContent: Get user's top artists or tracks over different time periods
    • SavedTracks: Get user's saved (liked) tracks with metadata
  2. Previously, the scopes were defined as a global variable, then re-defined as a comma-delimited string. I made a change so that the class variable scopes is now defined from global var SCOPES

For some context, here's what I was working on at time of creating this PR: https://www.linkedin.com/posts/brentbrewington_fun-weeknight-project-playing-around-with-activity-7367015211037380610-jF5b


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/varunneal/spotify-mcp/pull/40 **Author:** [@bbrewington](https://github.com/bbrewington) **Created:** 8/29/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`7fbc56f`](https://github.com/varunneal/spotify-mcp/commit/7fbc56fc673c39dcfbf777418ba3166ae18dc662) add endpoints to get user's played/followed/top/saved - [`9229d76`](https://github.com/varunneal/spotify-mcp/commit/9229d76e476423c71f8a3c2ec99f18f6413d1e7c) define "scope" from global var SCOPES ### 📊 Changes **2 files changed** (+226 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/spotify_mcp/server.py` (+91 -0) 📝 `src/spotify_mcp/spotify_api.py` (+135 -1) </details> ### 📄 Description ## Changes Made 1) Added the following tool execution requests in `server.py`: - `RecentlyPlayed`: Get recently played tracks with timestamps and play context - `FollowedArtists`: Get artists that the user follows - `TopContent`: Get user's top artists or tracks over different time periods - `SavedTracks`: Get user's saved (liked) tracks with metadata 2) Previously, the scopes were defined as a global variable, then re-defined as a comma-delimited string. I made a change so that the class variable `scopes` is now defined from global var `SCOPES` For some context, here's what I was working on at time of creating this PR: https://www.linkedin.com/posts/brentbrewington_fun-weeknight-project-playing-around-with-activity-7367015211037380610-jF5b --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-mcp-varunneal#42
No description provided.