Skip to content
Agentmart
Submit a tool

reference

Shared reference for the Music Assistant local API — base URL, auth, the WebSocket command bus, the DSP/EQ schema, and the data-storage layout this plugin uses.

Skill by danielrosehill

IndexedMIT
Write a review

Chalk Labs

Need help deploying reference?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/danielrosehill-reference

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Shared reference for the Music Assistant local API — base URL, auth, the WebSocket command bus, the DSP/EQ schema, and the data-storage layout this plugin uses. Load when another skill in this plugin needs to know how to talk to the server, what DSP shape to send, or where to read/write files.

Use cases: backend, data, security, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/reference

What's inside

Skill name
reference
Description
Shared reference for the Music Assistant local API — base URL, auth, the WebSocket command bus, the DSP/EQ schema, and the data-storage layout this plugin uses. Load when another skill in this plugin needs to know how to talk to the server, what DSP shape to send, or where to read/write files.
License
MIT
Instructions
134 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Music Assistant — Reference

Music Assistant (MA) runs as a Home Assistant add-on or standalone container. It exposes a local HTTP + WebSocket API on port **8095** by default.

## Authoritative docs (always re-check)

- **API overview**: https://www.music-assistant.io/api/
- **DSP Parametric EQ**: https://www.music-assistant.io/dsp/parametriceq/
- **DSP Tone Controls**: https://www.music-assistant.io/dsp/tonecontrols/
- **Live, version-specific OpenAPI on the running server**: `http://<LAN_IP>:8095/api-docs`

The MA API surface evolves between releases. When a call 4xx/404s, fetch `/api-docs` from the user's running server first — it's always the source of truth for that install.

## Server location

- **LAN base URL**: `http://<LAN_IP>:8095`
- **WebSocket**: `ws://<LAN_IP>:8095/ws`
- **WAN base URL** (optional): provided during onboarding if the server is reachable from outside the LAN.

Prefer the LAN address when both are available.

## Authentication

Long-lived **API key** as a Bearer token:

```
Authorization: Bearer <API_KEY>
```

For WebSocket, the first frame after connect is an auth message:

```json
{"type": "auth", "token": "<API_KEY>"}
```

## Command bus pattern

MA's primary API is a JSON-RPC-style command bus available over both HTTP (`POST /api`) and WebSocket. Each call looks like:

```json
{"command": "<command_name>", "args": { ... }, "message_id": "<uuid>"}
```

Verbatim commands worth knowing (subject to version):

- `config/players/get` — fetch a player_config by player_id
- `config/players/save` — write a player_config (this is how DSP is updated)
- `players/cmd/play`, `players/cmd/pause`, `players/cmd/stop`, `players/cmd/next`, `players/cmd/previous`
- `players/cmd/volume_set` (args: `{ "player_id": "...", "volume_level": 0-100 }`)
- `players/cmd/power` (args: `{ "player_id": "...", "powered": true|false }`)
- `players/all` — list players
- `music/library/...` — library queries

If you're unsure of the exact command name on the user's MA version, hit `http://<LAN_IP>:8095/api-docs` and grep for the keyword.

## DSP schema

Per the official DSP docs, the parametric EQ supports:

- **Filter types** (use these exact strings): `peaking` (Peak / Bell), `high_shelf`, `low_shelf`, `high_pass`, `low_pass`, `notch`, `all_pass`.
- **Unsupported** (don't generate): Modal, BP, LSC x dB, HS x dB, AP, LS with dB slope, HS with dB slope.
- **Bands**: unlimited.
- **Per-channel control**: optional (left/right independent or linked).
- **Preamp gain**: a global pre-EQ gain stage for compensation.

The DSP block lives **inside the player_config** under a `dsp` key. Canonical shape this plugin emits:

```json
{
  "dsp": {
    "enabled": true,
    "preamp_gain_db": -2.0,
    "per_channel": false,
    "bands": [
      {"type": "peaking",   "frequency": 2500, "gain_db": 3.0, "q": 1.0, "enabled": true},
      {"type": "high_pass", "frequency": 70,                   "q": 0.7, "enabled": true}
    ]
  }
}
```

Notes:
- `gain_db` is omitted for filters where it doesn't apply (`high_pass`, `low_pass`, `notch`, `all_pass`).
- `q` is meaningful for `peaking` and the pass/notch filters.
- `frequency` is integer Hz.
- The exact JSON keys used by the running MA may differ slightly between versions (e.g. `gain` vs `gain_db`, `freq` vs `frequency`) — when a save fails, fetch `/api-docs` and adapt.

DSP only applies to MA-native player flows (snapcast / built-in players). Hardware players that handle their own decoding may not expose a `dsp` key in their player_config.

Tone Controls (separate, simpler bass/treble) live alongside DSP per the docs at https://www.music-assistant.io/dsp/tonecontrols/.

## Data-storage layout (this plugin)

```bash
DATA_ROOT="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/media-assistant-ops"
```

```
$DATA_ROOT/
├── config.json                       # { lan_url, wan_url, api_key, port }
├── data/
│   ├── players-snapshot.json         # raw players/all response from onboarding
│   ├── players-snapshot.md           # human-readable roster
│   ├── library-snapshot.json
│   ├── library-snapshot.md
│   └── dsp-presets/
│       └── <player-slug>/
│           └── <preset-name>.json
└── state/
    └── last-dsp-<player-slug>.json   # rollback snapshot before any DSP change
```

**Never** write plugin data under `~/.claude/` or inside the plugin install directory.

## Helper: load config in a skill

```bash
DATA_ROOT="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/media-assistant-ops"
CONFIG="$DATA_ROOT/config.json"

From danielrosehill/Claude-Media-Assistant-Ops-Plugin, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Apr 21, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from danielrosehill

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get reference running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying reference?

CallGet help
Cite this page

reference skill. Agent Mart. https://agentmart.dev/skills/danielrosehill-reference (last updated 2026-10-24)