We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chaudepark/ableton-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
playback_handlers.py•885 B
"""Playback control handlers for AbletonMCP Remote Script."""
from typing import Any
from ..utils import BaseHandler
class PlaybackHandlers(BaseHandler):
"""Handlers for playback-related commands."""
def start_playback(self) -> dict[str, Any]:
"""Start playing the session"""
try:
self._song.start_playing()
result = {"playing": self._song.is_playing}
return result
except Exception as e:
self.log_message("Error starting playback: " + str(e))
raise
def stop_playback(self) -> dict[str, Any]:
"""Stop playing the session"""
try:
self._song.stop_playing()
result = {"playing": self._song.is_playing}
return result
except Exception as e:
self.log_message("Error stopping playback: " + str(e))
raise