add_master_fx
Add FX plugins to the master track in REAPER DAW for final mix processing and mastering workflows.
Instructions
Add an FX plugin to the master track.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fx_name | Yes |
Implementation Reference
- src/reaper_mcp/mastering_tools.py:20-32 (handler)The add_master_fx tool implementation. Decorated with @mcp.tool(), this function adds an FX plugin to the master track by name. It retrieves the project via get_project(), accesses the master track, adds the FX, and returns success status with FX metadata (index, name, n_params) or an error if the plugin is not found.
@mcp.tool() def add_master_fx(fx_name: str) -> dict: """Add an FX plugin to the master track.""" try: project = get_project() master = project.master_track fx_index = master.add_fx(fx_name) if fx_index < 0: return {"success": False, "error": f"Plugin not found: '{fx_name}'"} fx = master.fxs[fx_index] return {"success": True, "fx_index": fx_index, "name": fx.name, "n_params": fx.n_params} except Exception as e: return {"success": False, "error": str(e)} - src/reaper_mcp/mastering_tools.py:20-20 (registration)MCP tool registration via decorator. The @mcp.tool() decorator registers add_master_fx as an available tool in the MCP server, exposing it to clients.
@mcp.tool()