[PR #42] Add Play tool with improved search matching #43

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

📋 Pull Request Information

Original PR: https://github.com/varunneal/spotify-mcp/pull/42
Author: @haixuanTao
Created: 9/11/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (1)

  • 1a748a8 Add Play tool with improved search matching

📊 Changes

1 file changed (+88 additions, -0 deletions)

View changed files

📝 src/spotify_mcp/server.py (+88 -0)

📄 Description

  • Implement new SpotifyPlay tool that combines search and playback
  • Add fuzzy string matching to find best title matches from multiple results
  • Search 5 results instead of 1 to improve match quality
  • Use SequenceMatcher for similarity scoring with substring bonuses
  • Fix URI construction from search result IDs
  • Add detailed logging for match selection debugging

🤖 Generated with Claude Code

Fix https://github.com/varunneal/spotify-mcp/issues/41


🔄 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/42 **Author:** [@haixuanTao](https://github.com/haixuanTao) **Created:** 9/11/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`1a748a8`](https://github.com/varunneal/spotify-mcp/commit/1a748a8a974ed9989c052ee4824259c066834d83) Add Play tool with improved search matching ### 📊 Changes **1 file changed** (+88 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/spotify_mcp/server.py` (+88 -0) </details> ### 📄 Description - Implement new SpotifyPlay tool that combines search and playback - Add fuzzy string matching to find best title matches from multiple results - Search 5 results instead of 1 to improve match quality - Use SequenceMatcher for similarity scoring with substring bonuses - Fix URI construction from search result IDs - Add detailed logging for match selection debugging 🤖 Generated with [Claude Code](https://claude.ai/code) Fix https://github.com/varunneal/spotify-mcp/issues/41 --- <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#43
No description provided.