Skip to content

Add music-assistant-controls extension - #20087

Closed
YoeriVD wants to merge 6 commits into
raycast:mainfrom
YoeriVD:ext/music-assistant-controls
Closed

YoeriVD wants to merge 6 commits into
raycast:mainfrom
YoeriVD:ext/music-assistant-controls

Conversation

@YoeriVD

@YoeriVD YoeriVD commented Jun 27, 2025 •

Copy link
Copy Markdown
Contributor

Description

This extension lets you control Music Assistant (stand-alone server or Home-Assistant add-on) straight from Raycast and shows the current track in the macOS menu bar.

Command What it does
Toggle Pauses/resumes playback on the selected player
Next Song Skips tracks
Menu Bar Player Displays title - artist in the macOS menu bar

Why it’s useful

  • Keeps your hands on the keyboard—no browser tab or HA dashboard needed.
  • Works with multiple players and sources supported by Music Assistant (Spotify, Tidal, local files…).

Dependencies

  • Music Assistant listening on ws://HOST:8095/ws
    (for HA users: expose 8095 in the add-on’s settings)

No extra API tokens required.

Credits

Inspired by Matti S’s Spotify Player extension.

Screencast

screenshot-commands

screenshot-menu-bar

Checklist

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Jun 27, 2025
@raycastbot

raycastbot commented Jun 27, 2025 •

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

Due to our current reduced availability during summer, the initial review may take up to 10-15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@YoeriVD
YoeriVD marked this pull request as ready for review June 27, 2025 05:55

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

New extension that enables controlling Music Assistant through Raycast's interface, allowing playback control and menu bar track display via WebSocket connection.

  • tsconfig.json deviates from Raycast's standard by using ES2023 instead of ES2020 and adding resolveJsonModule, consider aligning with template defaults
  • WebSocket API implementation in src/music-assistant-api.ts needs more robust error handling for connection failures and state management
  • Menu bar player in src/menu-bar.tsx should include error handling for connection drops and state synchronization
  • Implementation provides good foundation but would benefit from additional user feedback during API operations
  • Assets from README are correctly placed outside metadata folder, following extension guidelines

14 files reviewed, 4 comments
Edit PR Review Bot Settings | Greptile

@pernielsentikaer pernielsentikaer self-assigned this Jul 2, 2025

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi 👋

Thanks for your contribution 💪

I have now tested your extension, and I have some feedback ready for you:

  • The extension icon is not working well in both appearances; could you look into this? If you struggle to do so, then you can use our generator
image
  • The extension crashes if not setup correct (I assume?), can we handle that gracefully?

music-assistant-controls 2025-07-02 at 09 32 45

I'm looking forward to testing this extension again 🔥

Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.

- linting
- refactor: enhance API command handling and add error event support
@YoeriVD
YoeriVD requested a review from pernielsentikaer July 2, 2025 14:20
@YoeriVD

YoeriVD commented Jul 2, 2025 •

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer
I updated the icon to use the (very) new logo
light
image

dark
image

Screenshots in the metadata folder have been updated accordingly.

also included a lot more error handling for wrong configuration.

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to show an error toast if something goes wrong? Right now, it still dies after 20 seconds or so with this

music-assistant-controls 2025-07-07 at 07 25 42

@YoeriVD

YoeriVD commented Jul 13, 2025

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer
Are you sure you are running the latest version?

image

@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 14 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Aug 3, 2025
@pernielsentikaer

Copy link
Copy Markdown
Contributor

Yes, I'm pretty sure I'm running the latest version with a wrong URL provided

music-assistant-controls 2025-08-04 at 07 58 58

@raycastbot raycastbot removed the status: stalled Stalled due inactivity label Aug 4, 2025
@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 14 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Aug 25, 2025
@YoeriVD YoeriVD closed this by deleting the head repository Aug 29, 2025
@YoeriVD

YoeriVD commented Aug 29, 2025

Copy link
Copy Markdown
Contributor Author

I have completely rewritten the extension and I was not able to update this PR.

npx @raycast/api@latest pull-contributions
ready  - getting fork
ready  - preparing clone
error  - pulling new contributions
failed running git Command failed: git pull origin ext/music-assistant-controls --ff
From https://github.com/YoeriVD/raycast-extensions
 * branch                ext/music-assistant-controls -> FETCH_HEAD
fatal: refusing to merge unrelated histories

I have created a new one: #21249

@YoeriVD YoeriVD mentioned this pull request Aug 29, 2025
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions status: stalled Stalled due inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants