# Skills and call logs

The agent skills Mirli ships, and the records the server keeps of every MCP call.

## Skills

The skills under `server/skills/` are instruction files an agent reads to prompt and call the tools well.

| Skill | Covers |
|---|---|
| `soundbox-sfx` | Prompting and tool use for effects, foley and ambience |
| `soundbox-sound-pass` | Inventorying and generating every sound event a project needs |
| `soundbox-voice-story` | Writing, voicing and arranging spoken audio as a story |

| Target | Folder | Install from |
|---|---|---|
| Claude Code | `~/.claude/skills/` | `soundbox skills install`, or the **Agents** page |
| Cursor | `~/.cursor/skills/` | `soundbox skills install --target cursor`, or the **Agents** page |
| Codex | `~/.codex/skills/` | `soundbox skills install --target codex`, or the **Agents** page |

The **Agents** page's **Install all skills** button calls `POST /api/mcp/skills/install`. `soundbox skills list`
prints what is bundled and what is installed. An install overwrites earlier copies.

The CLI commands, one per line:

```bash
soundbox skills install
soundbox skills install --target cursor
soundbox skills list
```

## Call records

Every call the server handles, over HTTP or the stdio bridge, is recorded three ways.

| Record | Content |
|---|---|
| Attribution | The MCP handshake's `clientInfo` name and version, captured with no header. Sounds from `generate` carry `source = "mcp"` and `client`, e.g. `claude-code 2.1.0`, and the Library can filter to them. A `speak` read carries `source = "mcp"` only. Story lines and exports carry neither |
| Call log | One line per call in the server log, and a row served by `GET /api/mcp/calls` and summarised by `GET /api/mcp/status`. The **Agents** page (`/#/agents`) reads these |
| OpenTelemetry | Optional. One span per call carrying client, session, tool, model and resulting sound ids, plus metrics, over OTLP/HTTP |

The server log sits in `~/.mirli/`, named for the port. The command that reads the MCP lines on the default port:

```bash
grep mcp ~/.mirli/soundbox-17494.log
```

### OpenTelemetry export

Export is built in. It turns on when a collector endpoint is set, in **Settings** or with this
`PATCH /api/settings` body:

```json title="PATCH /api/settings"
{
  "otel_endpoint": "http://localhost:4318"
}
```

| Setting | Detail |
|---|---|
| `otel_endpoint` | The collector's base URL. Traces go to `<ENDPOINT>/v1/traces` and metrics to `<ENDPOINT>/v1/metrics` |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | The same, as a server environment variable. Wins over the setting |

Any OTLP/HTTP receiver works: Jaeger, Tempo, Honeycomb, the OpenTelemetry Collector. The call log endpoints are in
the [HTTP API reference](https://mirli.app/docs/api/index.md).
