Skip to main content
Glama
jwachlin

metashunt-mcp

by jwachlin

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
METASHUNT_BAUDNoBaud for the serial link (cosmetic over USB-FS)1000000
METASHUNT_LOG_DIRNoWhere sessions are persisted~/.metashunt/logs
METASHUNT_RING_SIZENoIn-memory raw ring capacity (samples)262144
METASHUNT_IDLE_TIMEOUTNoReserved (idle detection)2.0
METASHUNT_DEC_ABS_MIN_MANoDefault abs-min decimation threshold (mA)0.00003
METASHUNT_DEC_MAX_POINTSNoDefault max_points1000
METASHUNT_DEC_THRESHOLD_PCTNoDefault decimation threshold percent1.0
METASHUNT_SELFTEST_SIMULATENoSet to 1 to force scripts/selftest.py into offline mode(unset)
METASHUNT_SERIAL_READ_TIMEOUTNoPer-read serial timeout (s)0.1

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
metashunt_statusB

Return connection and capture status.

metashunt_start_captureA

Begin continuous (streaming) capture into a named session.

Returns the session name used. Sampling continues in the background until :func:metashunt_stop_capture is called.

metashunt_stop_captureA

Stop recording. The device keeps measuring; the server just stops listening. The current session is finalized on disk.

metashunt_stream_nowB

Return the most recent samples from the live ring, decimated.

max_points caps the output; the adaptive decimator preserves charge and keeps spike timing. Returns decimated (t_us, cur_ma) plus a summary.

metashunt_burstC

Perform a high-rate device burst read.

trigger: immediate | rising | falling | stage | key2. level: current in uA for rising/falling, or the stage index for stage. Returns up to 37,500 samples at up to 127.5 kHz, decimated for return.

metashunt_set_triggerB

Add/replace a host-side trigger watching the live stream for a crossing above above_ma and/or below below_ma (mA).

metashunt_list_triggersD
metashunt_remove_triggerD
metashunt_list_sessionsA

List persisted capture sessions (from .npz/.json logs).

metashunt_load_sessionC

Load a session from disk, decimate, and return its data + summary.

metashunt_slice_logC

Load a time window [start_t_us, end_t_us] of a session on disk.

metashunt_measurement_statsA

Compute aggregate statistics (count/mean/std/min/max) over a session window without transferring the full dataset.

metashunt_delete_sessionD

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jwachlin/metashunt_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server