We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pedrocid/music-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
play-pause.applescript•497 B
on run argv
try
tell application "Music"
if not running then
launch
delay 2 -- give it time to start
end if
if player state is playing then
pause
return "Paused"
else
play
return "Playing"
end if
end tell
on error errMsg number errNum
return "Error " & errNum & ": " & errMsg
end try
end run