play_project
Start playback of a REAPER project from the current cursor position. This tool begins audio playback immediately from where the cursor is located.
Instructions
Start project playback from the current cursor position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/reaper_mcp/audio_tools.py:72-78 (handler)Handler function for the play_project tool. Sends REAPER's transport play command (1007) to start playback.
def play_project() -> dict: """Start project playback from the current cursor position.""" try: RPR.Main_OnCommand(1007, 0) # Transport: Play return {"success": True, "message": "Playback started"} except Exception as e: return {"success": False, "error": str(e)} - src/reaper_mcp/audio_tools.py:71-78 (registration)Registration via @mcp.tool() decorator inside register_tools(mcp). The function play_project is declared as an MCP tool.
@mcp.tool() def play_project() -> dict: """Start project playback from the current cursor position.""" try: RPR.Main_OnCommand(1007, 0) # Transport: Play return {"success": True, "message": "Playback started"} except Exception as e: return {"success": False, "error": str(e)} - src/reaper_mcp/connection.py:27-30 (helper)Helper used by other tools in audio_tools.py (though play_project itself doesn't use it, it's part of the same module's helper infrastructure for REAPER connectivity.
def get_project() -> reapy.Project: ensure_connected() return reapy.Project()