mirror of
https://github.com/varunneal/spotify-mcp.git
synced 2026-04-26 13:15:50 +03:00
[PR #45] feat: Add SPOTIPY_CACHE_PATH environment variable support #44
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#44
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/45
Author: @jmward09
Created: 11/5/2025
Status: 🔄 Open
Base:
main← Head:feature/spotipy-cache-path📝 Commits (1)
952a1aafeat: Add SPOTIPY_CACHE_PATH environment variable support📊 Changes
1 file changed (+15 additions, -5 deletions)
View changed files
📝
src/spotify_mcp/spotify_api.py(+15 -5)📄 Description
Summary
This PR adds support for the
SPOTIPY_CACHE_PATHenvironment variable, allowing users to specify a custom location for OAuth token cache files.Motivation
When deploying spotify-mcp in certain environments, it's useful to control where token cache files are stored:
Changes
spotify_api.pyClient initialization to check forSPOTIPY_CACHE_PATHenvironment variablecache_pathparameter to SpotifyOAuthTesting
Tested in production environment with custom cache path:
Token caching works correctly with custom path specified.
Backward Compatibility
✅ Fully backward compatible - if
SPOTIPY_CACHE_PATHis not set, behavior is unchangedRelated Issues
None currently open, but this pattern is common across Python projects using environment variables for configuration.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.