saleae-mso-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SALEAE_MSO_SERIAL | No | Serial number of the Logic MSO to use. Defaults to the first MSO found. | |
| SALEAE_MSO_BACKEND | No | Backend to use. Use 'hardware' for a connected Logic MSO or 'simulated' for no device. | hardware |
| SALEAE_MSO_MAX_POINTS | No | Maximum number of waveform points returned per call. | 2000 |
| SALEAE_MSO_CAPTURE_DIR | No | Directory where captures are saved. | ~/.local/share/saleae-mso-mcp/captures |
| SALEAE_MSO_CAPTURE_TIMEOUT | No | Capture timeout in seconds. | 60 |
| SALEAE_MSO_MAX_SAMPLE_RATE | No | Maximum sample rate used when a capture omits sample_rate_hz. | 1.6e9 |
| SALEAE_MSO_MAX_TRANSITIONS | No | Maximum number of logic edges returned per call. | 1000 |
| SALEAE_MSO_AUTO_MAX_SAMPLES | No | Maximum samples per channel before the sample rate is divided down. | 20000000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Controls a Saleae Logic MSO (mixed-signal oscilloscope).
Workflow: get_device_info -> capture_timed or capture_triggered -> inspect the returned summary (it already contains min/max/mean/RMS, frequency, duty cycle, rise/fall time per channel) -> drill in with measure, get_waveform (min/max decimated points) or get_digital_transitions using start_s/stop_s windows.
Times are in seconds. For triggered captures t = 0 is the trigger point. Analog channel indices are 0-based (CH1 = 0). Only one program can own the device: if Logic 2 is open, captures fail; call release_device before handing the device back to Logic 2.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_device_infoA | Report whether a Logic MSO is connected, its serial and part number, and where captures are saved. |
| capture_timedB | Capture for a fixed duration and return a per-channel measurement summary. If you set sample_rate_hz, keep duration_s * sample_rate_hz to tens of millions of samples at most. |
| capture_triggeredA | Wait for an analog edge trigger, capture around it (t = 0 at the trigger) and summarise. |
| list_capturesB | List saved captures, newest first. |
| get_capture_summaryC | Settings and per-channel measurements of a saved capture. |
| measureA | Measure one channel over a time window. Analog: min/max/mean/RMS/AC-RMS, peak-to-peak, frequency, period, duty cycle, rise/fall (10-90%). Digital: edge counts, frequency, duty cycle, min/max pulse width. |
| get_waveformA | Return [time_s, volts] points for an analog channel. Long windows are reduced with min/max decimation so spikes and glitches are kept. Narrow the window to see full resolution. |
| get_digital_transitionsC | Initial state and transition times of a digital channel within a window. |
| export_csvA | Write full-resolution channel data to a CSV file inside the capture folder and return its path. |
| delete_captureB | Permanently delete a saved capture and its files. |
| release_deviceA | Close the USB connection so Logic 2 or another program can use the MSO. Reopens on the next capture. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Most tools target clearly distinct actions and resources, such as listing/deleting captures versus capturing or exporting data. The main overlap is between get_capture_summary and measure, both reporting measurements, though the descriptions distinguish whole-capture summary from windowed single-channel measurement.
Names generally follow a verb_noun pattern like get_capture_summary, delete_capture, and export_csv. Minor deviations exist: measure is a bare verb, and capture_timed/capture_triggered use an adjective rather than a clear object noun.
Eleven tools is well within a reasonable scope for a hardware capture/measurement server. Each tool covers a distinct operation in the capture workflow, with no obvious filler tools.
The set covers device discovery, capture creation, listing/deletion, measurement, waveform access, digital transitions, export, and device release. Minor gaps include no explicit trigger-configuration tool beyond analog edge triggering and no capture rename/metadata editing.