MCP Examples
These examples show how an AI assistant can interact with MZAP through the MCP protocol.
Basic Playback
Section titled “Basic Playback”User: “Play some jazz in the lobby”
The AI assistant would:
- Call
search_librarywith query “jazz” - Call
create_playerwith name “Lobby Jazz” - Call
loadwith the found track - Call
attach_zonesto route to lobby zones - Call
playto start playback
Volume Control
Section titled “Volume Control”User: “Turn down the bar area to 30%”
The AI assistant would:
- Call
list_playersor identify bar zones - Call
set_zone_volumefor each bar zone with level 0.3
Routing Changes
Section titled “Routing Changes”User: “Move the restaurant music to the patio instead”
The AI assistant would:
- Identify the restaurant player
- Call
detach_zonesto remove restaurant zone connections - Call
attach_zonesto add patio zone connections
Workspace Management
Section titled “Workspace Management”User: “Switch to the evening setup”
The AI assistant would:
- Call
list_workspacesto find “Evening” - Call
load_workspacewith the workspace name