Skip to content

MCP Examples

These examples show how an AI assistant can interact with MZAP through the MCP protocol.

User: “Play some jazz in the lobby”

The AI assistant would:

  1. Call search_library with query “jazz”
  2. Call create_player with name “Lobby Jazz”
  3. Call load with the found track
  4. Call attach_zones to route to lobby zones
  5. Call play to start playback

User: “Turn down the bar area to 30%”

The AI assistant would:

  1. Call list_players or identify bar zones
  2. Call set_zone_volume for each bar zone with level 0.3

User: “Move the restaurant music to the patio instead”

The AI assistant would:

  1. Identify the restaurant player
  2. Call detach_zones to remove restaurant zone connections
  3. Call attach_zones to add patio zone connections

User: “Switch to the evening setup”

The AI assistant would:

  1. Call list_workspaces to find “Evening”
  2. Call load_workspace with the workspace name